From 7c5dfb2e15fd501a34413e15f9761ef197787f4f Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 30 Dec 2024 14:31:44 -0800 Subject: [PATCH] Fix warning about setting badge icon number. --- iOS/AppDelegate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/AppDelegate.swift b/iOS/AppDelegate.swift index 70b9b4b69..1d7b7ea92 100644 --- a/iOS/AppDelegate.swift +++ b/iOS/AppDelegate.swift @@ -48,7 +48,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD didSet { if unreadCount != oldValue { postUnreadCountDidChangeNotification() - UIApplication.shared.applicationIconBadgeNumber = unreadCount + UNUserNotificationCenter.current().setBadgeCount(unreadCount) } } }