ViewDestinationable
@MainActor
public protocol ViewDestinationable<DestinationType, ContentType, TabType> : Destinationable
This protocol represents a Destination which is associated with a SwiftUI View.
-
The type of
Viewassociated with this Destination.Declaration
Swift
associatedtype ViewType : ViewDestinationInterfacing -
The SwiftUI
Viewassociated with this Destination.Declaration
Swift
@MainActor var view: ViewType? { get set } -
currentView()Default implementationReturns the View managed by this Destination.
Default Implementation
Declaration
Swift
@MainActor func currentView() -> ViewType?Return Value
A
ViewDestinationInterfacingobject, if one exists. -
presentSheet(sheet:Default implementation) Presents a sheet in the Destination’s view.
Default Implementation
Declaration
Swift
@MainActor func presentSheet(sheet: any Sheetable)Parameters
sheetThe sheet model to configure the sheet presentation.
-
dismissSheet()Default implementationDismisses the currently presented sheet.
Default Implementation
Declaration
Swift
@MainActor func dismissSheet() -
assignAssociatedView(view:Default implementation) Assigns a
Viewto be associated with this Destination.Default Implementation
Declaration
Swift
@MainActor func assignAssociatedView(view: ViewType)Parameters
viewThe
Viewthat 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