Update to Xcode 12

This commit is contained in:
relikd
2020-09-17 16:41:18 +02:00
parent 71045bf0dd
commit 7118ec3b02
6 changed files with 12 additions and 9 deletions

View File

@@ -9,6 +9,7 @@ enum NotificationRequestState {
case .authorized: self = .Authorized
case .provisional: self = .Provisional
case .notDetermined: fallthrough
case .ephemeral: fallthrough
@unknown default: self = .NotDetermined
}
}

View File

@@ -30,9 +30,9 @@ class VCRecordings: UIViewController, UINavigationControllerDelegate {
x.addSheet().addArrangedSubview(TinyMarkdown.load("tut-recording-1"))
x.addSheet().addArrangedSubview(TinyMarkdown.load("tut-recording-2"))
x.buttonTitleDone = "Got it"
x.present {
x.present(didClose: {
Prefs.DidShowTutorial.Recordings = true
}
})
}
}
}
@@ -55,9 +55,9 @@ class VCRecordings: UIViewController, UINavigationControllerDelegate {
let x = TutorialSheet()
x.addSheet().addArrangedSubview(TinyMarkdown.load("tut-recording-howto"))
x.buttonTitleDone = "Close"
x.present() {
x.present(didClose: {
Prefs.DidShowTutorial.RecordingHowTo = true
}
})
}

View File

@@ -36,9 +36,9 @@ class TBCMain: UITabBarController {
let x = TutorialSheet()
x.addSheet().addArrangedSubview(TinyMarkdown.load("tut-welcome-1"))
x.addSheet().addArrangedSubview(TinyMarkdown.load("tut-welcome-2"))
x.present {
x.present(didClose: {
Prefs.DidShowTutorial.Welcome = true
}
})
}
}