FlowContributor
public enum FlowContributor
A FlowContributor describes the next thing that will contribute to a Flow.
- contribute: the given stepper will emit steps (according to lifecycle of the given presentable and the allowStepWhenNotPresented parameter) that will contribute to the current Flow
- forwardToCurrentFlow: the given step will be forwarded to the current flow
- forwardToParentFlow: the given step will be forwarded to the parent flow
-
the given stepper will emit steps, according to lifecycle of the given presentable, that will contribute to the current Flow
allowStepWhenNotPresented
can be passed to make the coordinator accept the steps from the stepper even id the presentable is not visibleallowStepWhenDismissed
can be passed to make the coordinator accept the steps from the stepper even the presentable has dismissed (e.g UIPageViewController’s child)Declaration
Swift
case contribute(withNextPresentable: Presentable, withNextStepper: Stepper, allowStepWhenNotPresented: Bool = false, allowStepWhenDismissed: Bool = false)
-
the “withStep” step will be forwarded to the current flow
Declaration
Swift
case forwardToCurrentFlow(withStep: Step)
-
the “withStep” step will be forwarded to the parent flow
Declaration
Swift
case forwardToParentFlow(withStep: Step)
-
Shortcut static func that returns a .contribute(withNextPresentable: _, withNextStepper: _) in case we have a single actor that is a Presentable and also a Stepper
Declaration
Swift
public static func contribute(withNext nextPresentableAndStepper: Presentable & Stepper) -> FlowContributor
Return Value
.contribute(withNextPresentable: withNext, withNextStepper: withNext)