ControllerDestinationable
@MainActor
public protocol ControllerDestinationable<DestinationType, ContentType, TabType> : Destinationable
This protocol represents a Destination which is associated with a UIViewController.
-
The type of view controller associated with this Destination.
Declaration
Swift
associatedtype ControllerType : ControllerDestinationInterfacing -
The
UIViewControllerassociated with this Destination.Declaration
Swift
@MainActor var controller: ControllerType? { get set } -
currentController()Default implementationReturns the controller this Destination manages.
Default Implementation
Declaration
Swift
@MainActor func currentController() -> ControllerType? -
assignAssociatedController(controller:Default implementation) Assigns a
UIViewControllerinstance to be associated with this Destination.Default Implementation
Declaration
Swift
@MainActor func assignAssociatedController(controller: ControllerType)Parameters
controllerThe
UIViewControllerthat should be represented by this Destination. -
assignInteractor(interactor:Extension methodfor: ) Declaration
Swift
@MainActor func assignInteractor<Request>(interactor: any AbstractInteractable<Request>, for type: InteractorType) where Request : InteractorRequestConfiguring -
updateInterfaceActions(actions:Extension method) Declaration
Swift
@MainActor func updateInterfaceActions(actions: [InterfaceAction<UserInteractionType, DestinationType, ContentType>]) -
updateSystemNavigationActions(actions:Extension method) Declaration
Swift
@MainActor func updateSystemNavigationActions(actions: [InterfaceAction<SystemNavigationType, DestinationType, ContentType>]) -
removeAssociatedInterface()Extension methodDeclaration
Swift
@MainActor func removeAssociatedInterface()
View on GitHub