summaryrefslogtreecommitdiff
path: root/Juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-10-08 17:22:59 +0300
committerGravatar Vitaly Takmazov2020-12-10 18:59:55 +0300
commit5c5c4239d8b7948232870bd6d5f8d3a87c5f50d0 (patch)
tree04d6a23969cd60e7adc588bfe1c680918faafc83 /Juick
parentcf97b1cd43a91725e0419a953815287fde0bf70f (diff)
Fix warnings
Diffstat (limited to 'Juick')
-rw-r--r--Juick/AppDelegate.swift2
-rw-r--r--Juick/MessageFetcher.swift2
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
}