PresenterProvider

public protocol PresenterProvider

Undocumented

  • Checks if a PresenterProvider can provide a presenter for a controller

    Declaration

    Swift

    func isResponsible(routeResult: RouteResult, controller: UIViewController) -> Bool

    Parameters

    routeResult

    The route result for which a presenter is searched

    controller

    The controller for which a presenter should be provided

    Return Value

    true if it can create a controller, false otherwise

  • Creates all presenters for a specific RouteResult controller combinations

    Declaration

    Swift

    func makePresenters(routeResult: RouteResult, controller: UIViewController) throws -> [Presenter]

    Parameters

    routeResult

    The route result for which a presenter is searched

    controller

    The controller for which a presenter should be provided

    Return Value

    An array of presenters