From 3383b7b7a699932d89e1562c545a3938acd592ed Mon Sep 17 00:00:00 2001 From: Terry Yiu <963907+tyiu@users.noreply.github.com> Date: Thu, 30 Mar 2023 13:59:05 -0400 Subject: [PATCH] Replace deprecated UNNotificationPresentationOptions.alert with .banner and .list --- damus/damusApp.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/damusApp.swift b/damus/damusApp.swift index e7193de7..122ac56b 100644 --- a/damus/damusApp.swift +++ b/damus/damusApp.swift @@ -53,7 +53,7 @@ class AppDelegate: NSObject, UIApplicationDelegate, UNUserNotificationCenterDele // Handle the notification in the foreground state func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { // Display the notification in the foreground - completionHandler([.alert, .sound, .badge]) + completionHandler([.banner, .list, .sound, .badge]) } }