import Dependencies import DependenciesMacros /// Provider-delivered notification events emitted by the host's platform delegate. /// /// The platform adapter owns the event source. ``NotificationsFeature`` owns decoding the /// provider payload and forwarding app-level content or source-available signals. @DependencyClient public struct NotificationEventClient: Sendable { public var events: @Sendable () async -> AsyncStream = { AsyncStream { $0.finish() } } } extension NotificationEventClient: TestDependencyKey { public static var testValue: Self { Self(events: { AsyncStream { $0.finish() } }) } } extension DependencyValues { public var notificationEventClient: NotificationEventClient { get { self[NotificationEventClient.self] } set { self[NotificationEventClient.self] = newValue } } }