fix alert dismissing
This commit is contained in:
1 parent
c1549ea326
commit
9ccc8e4317
1 file changed
+2
@@ -155,6 +155,7 @@ struct ContentView: View {
|
|||||||
try? FileManager.default.removeItem(at: videoURL)
|
try? FileManager.default.removeItem(at: videoURL)
|
||||||
}
|
}
|
||||||
Haptic.shared.notify(.success)
|
Haptic.shared.notify(.success)
|
||||||
|
UIApplication.shared.dismissAlert(animated: true)
|
||||||
UIApplication.shared.confirmAlert(title: "Success!", body: "The PosterBoard app will now open. Please close it from the app switcher.", onOK: {
|
UIApplication.shared.confirmAlert(title: "Success!", body: "The PosterBoard app will now open. Please close it from the app switcher.", onOK: {
|
||||||
if !pbManager.openPosterBoard() {
|
if !pbManager.openPosterBoard() {
|
||||||
UIApplication.shared.confirmAlert(title: "Falling Back to Shortcut", body: "PosterBoard failed to open directly. The fallback shortcut will now be opened.", onOK: {
|
UIApplication.shared.confirmAlert(title: "Falling Back to Shortcut", body: "PosterBoard failed to open directly. The fallback shortcut will now be opened.", onOK: {
|
||||||
@@ -165,6 +166,7 @@ struct ContentView: View {
|
|||||||
} catch {
|
} catch {
|
||||||
Haptic.shared.notify(.error)
|
Haptic.shared.notify(.error)
|
||||||
SymHandler.cleanup()
|
SymHandler.cleanup()
|
||||||
|
UIApplication.shared.dismissAlert(animated: true)
|
||||||
UIApplication.shared.alert(body: error.localizedDescription)
|
UIApplication.shared.alert(body: error.localizedDescription)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user