Structures
The following structures are available globally.
-
Declaration
Swift
public struct Navigate : NavigationSideEffect
extension Navigate: CustomDebugStringConvertible
-
Navigation action used to ask the
Navigator
to show a specific screen identified by theidentifierToShow
.The
See moreViewController
that is managing that screen must implementRoutableWithConfiguration
orRoutable
in order to be identified with a matchingRoutable.routeIdentifier
.Declaration
-
Navigation action used to ask the
Navigator
to hide a specific screen identified by theidentifierToHide
.The
See moreViewController
that is managing that screen must implementRoutableWithConfiguration
orRoutable
in order to be identified with a matchingRoutable.routeIdentifier
.Declaration
-
Used by a
RoutableWithConfiguration
inside itsRoutableWithConfiguration.navigationConfiguration
to describe the kind of navigation action (Show
,Hide
) to handle.
See moreextension ListViewController: RoutableWithConfiguration { // needed by the `Routable` protocol // to identify this ViewController in the hierarchy var routeIdentifier: RouteElementIdentifier { return "listScreen" } // the `NavigationRequest`s that this ViewController is handling // with the `NavigationInstruction` to execute var navigationConfiguration: [NavigationRequest: NavigationInstruction] { return [ .show("addItemScreen"): .presentModally({ [unowned self] _ in let vc = AddItemViewController(store: self.store) return vc }) ] }
Declaration
Swift
public struct NavigationRequest : Hashable
extension NavigationRequest: CustomDebugStringConvertible
-
Tempura navigation protocol witness.
See moreDeclaration
Swift
public struct NavigationWitness