DestinationSwiftUICoordinating
@MainActor
public protocol DestinationSwiftUICoordinating : DestinationInterfaceCoordinating
This protocol represents an object that coordinates the presentation of a Destination within the SwiftUI framework.
-
A closure which is called when a Destination should be removed from the ecosystem, typically after it’s associated UI object is no longer being presented.
Declaration
Swift
@MainActor var removeDestinationClosure: RemoveDestinationFromFlowClosure? { get set } -
A delegate protocol object which can subscribe to this object to receive updates about the status of destination presentations.
Declaration
Swift
@MainActor var delegate: DestinationInterfaceCoordinatorDelegate? { get set } -
A reference to the root
Viewin a SwiftUI app.Declaration
Swift
@MainActor var rootView: (any View)? { get set } -
The Destination that currently should be presented.
Declaration
Swift
@MainActor var destinationToPresent: (any Destinationable)? { get set } -
Handles the presentation of a Destination’s associated
Viewin a SwiftUI app.Declaration
Swift
@MainActor func presentViewDestination<DestinationType: RoutableDestinations, ContentType: ContentTypeable, TabType: TabTypeable>( destination: (any ViewDestinationable<DestinationType, ContentType, TabType>)?, currentDestination: (any ViewDestinationable<DestinationType, ContentType, TabType>)?, parentOfCurrentDestination: (any ViewDestinationable)?, configuration: DestinationPresentation<DestinationType, ContentType, TabType>)Parameters
destinationThe Destination to present.
currentDestinationThe currently presented Destination.
parentOfCurrentDestinationThe parent of the current Destination.
configurationThe configuration object for this presentation.
View on GitHub