From 5c5c4239d8b7948232870bd6d5f8d3a87c5f50d0 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 8 Oct 2020 17:22:59 +0300 Subject: Fix warnings --- Juick/AppDelegate.swift | 2 +- 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 = .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 } -- cgit v1.2.3