From d0842d14d76ff1542a20edfb5df9c3aa7b8d2f16 Mon Sep 17 00:00:00 2001 From: Trey t Date: Wed, 19 Jan 2022 11:47:25 -0600 Subject: [PATCH] closed #34 --- Shared/AppDelegate.swift | 3 --- Shared/FeelsApp.swift | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Shared/AppDelegate.swift b/Shared/AppDelegate.swift index 84649a7..d0abcbf 100644 --- a/Shared/AppDelegate.swift +++ b/Shared/AppDelegate.swift @@ -12,9 +12,6 @@ import WidgetKit // AppDelegate.swift class AppDelegate: NSObject, UIApplicationDelegate { - - - func application(_ application: UIApplication, willFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { // PersistenceController.shared.clearDB() application.registerForRemoteNotifications() diff --git a/Shared/FeelsApp.swift b/Shared/FeelsApp.swift index 6e2f493..42e36f7 100644 --- a/Shared/FeelsApp.swift +++ b/Shared/FeelsApp.swift @@ -35,6 +35,10 @@ struct FeelsApp: App { print("background") WidgetCenter.shared.reloadAllTimelines() } + + if phase == .active { + UIApplication.shared.applicationIconBadgeNumber = 0 + } } } }