NextFlowItem
public struct NextFlowItem
A NextFlowItem 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 Coordinator will listen to have the next navigation Steps (a Stepper). If a navigation action does not have to lead to a NextFlowItem, it is possible to have an empty NextFlowItem array
-
The presentable that will be handle by the Coordinator. The Coordinator is not meant to display this presentable, it will only handle its
Display
status so that the associated Stepper will be listened or notDeclaration
Swift
public let nextPresentable: Presentable
-
The Stepper that will be handle by the Coordinator. It will emit the new navigation Steps. The Coordinator will listen to them only if the associated Presentable is displayed
Declaration
Swift
public let nextStepper: Stepper
-
Initialize a new NextFlowItem
Declaration
Swift
public init(nextPresentable presentable: Presentable, nextStepper stepper: Stepper)
Parameters
nextPresentable
the next presentable to be handled by the Coordinator
nextStepper
the next Steper to be handled by the Coordinator