From 6b42ceda4bc3d0b3199fd4c1de047ee2052d20be Mon Sep 17 00:00:00 2001 From: Oliver Foggin Date: Thu, 14 Dec 2023 17:57:40 +0000 Subject: [PATCH] Made public --- Sources/ComposableSubscriber/SubscriberReducer.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {