NavigationItem

public struct NavigationItem

A NavigationItem 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 NavigationItem, it is possible to have an empty NavigationItem array

  • Initialize a new NavigationItem

    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

  • A empty NavigationItem’s array

    Declaration

    Swift

    public static var noNavigation: [NavigationItem]