From 9ccc8e43179dce5099e8b1a93c8e75305e699427 Mon Sep 17 00:00:00 2001 From: leminlimez <59540996+leminlimez@users.noreply.github.com> Date: Wed, 11 Jun 2025 16:59:28 -0400 Subject: [PATCH] fix alert dismissing --- Pocket Poster/Views/ContentView.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Pocket Poster/Views/ContentView.swift b/Pocket Poster/Views/ContentView.swift index 815b253..7fc0297 100644 --- a/Pocket Poster/Views/ContentView.swift +++ b/Pocket Poster/Views/ContentView.swift @@ -155,6 +155,7 @@ struct ContentView: View { try? FileManager.default.removeItem(at: videoURL) } 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: { 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: { @@ -165,6 +166,7 @@ struct ContentView: View { } catch { Haptic.shared.notify(.error) SymHandler.cleanup() + UIApplication.shared.dismissAlert(animated: true) UIApplication.shared.alert(body: error.localizedDescription) } }