diff --git a/Sources/ComposableSubscriber/SubscriberReducer.swift b/Sources/ComposableSubscriber/SubscriberReducer.swift index bd560f7..76ad546 100644 --- a/Sources/ComposableSubscriber/SubscriberReducer.swift +++ b/Sources/ComposableSubscriber/SubscriberReducer.swift @@ -1,7 +1,7 @@ import ComposableArchitecture extension Reducer { - func subscribe( + public func subscribe( on triggerAction: CaseKeyPath, to stream: @escaping () async throws -> AsyncStream, with responseAction: CaseKeyPath @@ -15,7 +15,7 @@ extension Reducer { } } -struct _SubscribeReducer: Reducer { +public struct _SubscribeReducer: Reducer { @usableFromInline let parent: Parent @@ -40,7 +40,7 @@ struct _SubscribeReducer: Reducer { self.responseAction = AnyCasePath(responseAction) } - func reduce(into state: inout Parent.State, action: Parent.Action) -> Effect { + public func reduce(into state: inout Parent.State, action: Parent.Action) -> Effect { let effects = parent.reduce(into: &state, action: action) guard self.triggerAction.extract(from: action) != nil else {