mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-05-04 22:44:28 +02:00
Xcode 11 beta 6
This commit is contained in:
@@ -15,10 +15,10 @@ struct ProfileHost: View {
|
||||
var body: some View {
|
||||
VStack(alignment: .leading, spacing: 20) {
|
||||
HStack {
|
||||
if self.mode?.value == .active {
|
||||
if self.mode?.wrappedValue == .active {
|
||||
Button(action: {
|
||||
self.draftProfile = self.profile
|
||||
self.mode?.animation().value = .inactive
|
||||
self.mode?.animation().wrappedValue = .inactive
|
||||
}) {
|
||||
Text("Done")
|
||||
}
|
||||
@@ -28,7 +28,7 @@ struct ProfileHost: View {
|
||||
|
||||
EditButton()
|
||||
}
|
||||
if self.mode?.value == .inactive {
|
||||
if self.mode?.wrappedValue == .inactive {
|
||||
ProfileSummary(profile: profile)
|
||||
} else {
|
||||
ProfileEditor(profile: $draftProfile)
|
||||
|
||||
Reference in New Issue
Block a user