We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db63fe9 commit c1257e8Copy full SHA for c1257e8
1 file changed
Application/DevLogPresentation/Sources/Main/MainFeature.swift
@@ -94,15 +94,7 @@ private enum ObserveUnreadPushCountUseCaseKey: DependencyKey {
94
95
private enum SetApplicationBadgeCountKey: DependencyKey {
96
static let liveValue: @Sendable (Int) async throws -> Void = { count in
97
- try await withCheckedThrowingContinuation { continuation in
98
- UNUserNotificationCenter.current().setBadgeCount(count) { error in
99
- if let error {
100
- continuation.resume(throwing: error)
101
- } else {
102
- continuation.resume()
103
- }
104
105
+ try await UNUserNotificationCenter.current().setBadgeCount(count)
106
}
107
108
static var testValue: @Sendable (Int) async throws -> Void {
0 commit comments