Fix warning about setting badge icon number.

This commit is contained in:
Brent Simmons
2024-12-30 14:31:44 -08:00
parent f2679115d4
commit 7c5dfb2e15

View File

@@ -48,7 +48,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
didSet {
if unreadCount != oldValue {
postUnreadCountDidChangeNotification()
UIApplication.shared.applicationIconBadgeNumber = unreadCount
UNUserNotificationCenter.current().setBadgeCount(unreadCount)
}
}
}