Initializer
init(interactor:viewController:)
Creates a router that pairs an interactor with a view controller.
@MainActor init(interactor: InteractorType, viewController: ViewControllerType)
Parameters
- interactor
The router’s interactor. Must conform to Interactable.
- viewController
The view controller managed by this router. Must conform to ViewControllable; the initializer traps if it does not.
Discussion
Precondition
viewController conforms to ViewControllable.
Precondition
interactor conforms to Interactable.