Enumerations

The following enumerations are available globally.

  • Used by a RoutableWithConfiguration inside its RoutableWithConfiguration.navigationConfiguration to describe the kind of navigation to perform when handling a NavigationRequest.

       extension 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
             })
           ]
       }
    
    See more

    Declaration

    Swift

    public enum NavigationInstruction