Skip to content

Commit

Permalink
Be less restrictive
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Sep 19, 2024
1 parent d89a3a1 commit 7039019
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Spezi/Notifications/UserNotifications.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@ public final class LocalNotifications: Module, DefaultInitializable, Environment
/// - Parameters:
/// - isolation: Inherits the current isolation.
/// - badgeCount: The new badge count to display.
@available(watchOS, unavailable)
public func setBadgeCount( // swiftlint:disable:this function_default_parameter_at_end
isolation: isolated (any Actor)? = #isolation,
_ badgeCount: Int
) async throws {
try await UNUserNotificationCenter.current().setBadgeCount(badgeCount)
}
#else
@available(watchOS, unavailable)
public func setBadgeCount(_ badgeCount: Int) async throws {
try await UNUserNotificationCenter.current().setBadgeCount(badgeCount)
}
Expand All @@ -67,7 +69,7 @@ public final class LocalNotifications: Module, DefaultInitializable, Environment
/// - request: The notification request.
public func add( // swiftlint:disable:this function_default_parameter_at_end
isolation: isolated (any Actor)? = #isolation,
request: sending UNNotificationRequest
request: UNNotificationRequest
) async throws {
try await UNUserNotificationCenter.current().add(request)
}
Expand Down

0 comments on commit 7039019

Please sign in to comment.