Structures
The following structures are available globally.
-
Declaration
Swift
public struct Navigate : NavigationSideEffectextension Navigate: CustomDebugStringConvertible -
Navigation action used to ask the
Navigatorto show a specific screen identified by theidentifierToShow.The
See moreViewControllerthat is managing that screen must implementRoutableWithConfigurationorRoutablein order to be identified with a matchingRoutable.routeIdentifier.Declaration
-
Navigation action used to ask the
Navigatorto hide a specific screen identified by theidentifierToHide.The
See moreViewControllerthat is managing that screen must implementRoutableWithConfigurationorRoutablein order to be identified with a matchingRoutable.routeIdentifier.Declaration
-
Used by a
RoutableWithConfigurationinside itsRoutableWithConfiguration.navigationConfigurationto 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 : Hashableextension NavigationRequest: CustomDebugStringConvertible
-
Tempura navigation protocol witness.
See moreDeclaration
Swift
public struct NavigationWitness
View on GitHub
Structures Reference