FlowContributor
public class FlowContributor
A FlowContributor is the result of the coordination action between a Flow and a Step (See Flow.navigate(to:) function) It describes the next thing that will be presented (a Presentable) and the next thing the FlowCoordinator will listen to, to have the next navigation Steps (a Stepper). If a navigation action does not have to lead to a FlowContributor, it is possible to have an empty FlowContributor array
-
The presentable that will be handle by the FlowCoordinator. The FlowCoordinator is not meant to display this presentable, it will only handle its
Display
status so that the associated Stepper will be listened to or notDeclaration
Swift
public let nextPresentable: Presentable
-
The Stepper that will be handle by the FlowCoordinator. It will emit the new navigation Steps. The FlowCoordinator will listen to them only if the associated Presentable is displayed
Declaration
Swift
public let nextStepper: Stepper
-
Initialize a new FlowContributor
Declaration
Swift
public init(nextPresentable presentable: Presentable, nextStepper stepper: Stepper)
Parameters
nextPresentable
the next presentable to be handled by the FlowCoordinator
nextStepper
the next Steper to be handled by the FlowCoordinator