ViewDestinationInterfacing
@MainActor
public protocol ViewDestinationInterfacing<DestinationType, ContentType, TabType> : DestinationInterfacing, View where Self.Destination : ViewDestinationable
A protocol representing a SwiftUI View that is associated with a Destination.
-
destinationView(for:Extension method) A
ViewBuildermethod that returns a strongly-typedViewassociated with the specified Destiantion.Declaration
Swift
@ViewBuilder @MainActor func destinationView(for destination: any ViewDestinationable<DestinationType, ContentType, TabType>) -> (some View)?Parameters
destinationIDThe identifier of the Destination.
Return Value
A strongly-typed
Viewassociated with the specified Destination.
View on GitHub