Xcode 11 beta 6

This commit is contained in:
John Holdsworth
2019-08-20 18:54:37 +02:00
parent a36ff1b7ca
commit 7de7e1e47b
40 changed files with 114 additions and 115 deletions

View File

@@ -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)