Skip to content

Commit c1257e8

Browse files
committed
refactor: badge count async API 적용
1 parent db63fe9 commit c1257e8

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

Application/DevLogPresentation/Sources/Main/MainFeature.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,7 @@ private enum ObserveUnreadPushCountUseCaseKey: DependencyKey {
9494

9595
private enum SetApplicationBadgeCountKey: DependencyKey {
9696
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-
}
97+
try await UNUserNotificationCenter.current().setBadgeCount(count)
10698
}
10799

108100
static var testValue: @Sendable (Int) async throws -> Void {

0 commit comments

Comments
 (0)