diff options
Diffstat (limited to 'Juick')
-rw-r--r-- | Juick/AppDelegate.swift | 2 | ||||
-rw-r--r-- | Juick/MessageFetcher.swift | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Juick/AppDelegate.swift b/Juick/AppDelegate.swift index d1062f4..b711d2b 100644 --- a/Juick/AppDelegate.swift +++ b/Juick/AppDelegate.swift @@ -76,7 +76,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } // Called when a notification is delivered to a foreground app. func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { - completionHandler([.sound, .alert, .badge]) + completionHandler([.sound, .list, .banner, .badge]) } //Called to let your app know which action was selected by the user for a given notification. func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse, withCompletionHandler completionHandler: @escaping () -> Void) { diff --git a/Juick/MessageFetcher.swift b/Juick/MessageFetcher.swift index b478e9e..fd1f7f1 100644 --- a/Juick/MessageFetcher.swift +++ b/Juick/MessageFetcher.swift @@ -25,7 +25,7 @@ class MessageFetcher: ObservableObject { @Published var state: LoadableState<Feed> = .loading init(url: String) { - guard let apiUrl = URL(string: url) else { + guard let _ = URL(string: url) else { state = .fetched(.failure(.error("Malformed API URL."))) return } |