WireframeApp

public protocol WireframeApp : App, ControllerContainer

Undocumented

  • the wireframe responsible for routing between your view controllers

    Declaration

    Swift

    var wireframe: Wireframe { get }
  • Add an observer to configure your application after adding a feature. Have look at LogicFeature and LogicFeatureObserver for an example.

    Declaration

    Swift

    func add(featureObserver: WireframeFeatureObserver)

    Parameters

    featureObserver

    an object observing feature addition

  • navigateOn(_:) Default implementation

    Add a controller that can be used to navigate in your app. Typically this will be a UINavigationController, but it could also be a UITabbarController if you have a routing presenter that can handle it. Be careful you can add more than one viewControllers if your RoutingPresenters can handle different controller types or when the active ‘rootController’ changes. The last added controller will be used first. The controller will not be retained by the application (it is weakly stored), you need to store a link to them elsewhere (if you don’t want them to be removed from memory).

    Default Implementation

    Declaration

    Swift

    func navigateOn(_ controller: UIViewController)

    Parameters

    controller

    a controller that can be used to navigte in your app

  • controllerToNavigate(matches:) Default implementation

    return the first navigatableController that matches in a block

    Default Implementation

    Declaration

    Swift

    func controllerToNavigate(matches: (_ controller: UIViewController?) -> Bool) -> UIViewController?
  • add(controllerToNavigate:) Extension method

    Undocumented

    Declaration

    Swift

    public func add(controllerToNavigate: UIViewController)
  • addUnretained(controller:) Extension method

    Undocumented

    Declaration

    Swift

    public func addUnretained(controller: UIViewController)
  • remove(controller:) Extension method

    Undocumented

    Declaration

    Swift

    public func remove(controller: UIViewController)
  • getController(matches:) Extension method

    Undocumented

    Declaration

    Swift

    public func getController(matches: (_ controller: UIViewController?) -> Bool) -> UIViewController?