ViewDestinationInterfacing
@MainActor
public protocol ViewDestinationInterfacing : DestinationInterfacing, View where Self.Destination : ViewDestinationable
A protocol representing a SwiftUI View
that is associated with a Destination.
-
An enum which defines all routable Destinations in the app.
Declaration
Swift
associatedtype DestinationType : RoutableDestinations
-
destinationView(for:
Extension method) A
ViewBuilder
method that returns a strongly-typedView
associated with the specified Destiantion.Declaration
Swift
@ViewBuilder @MainActor func destinationView(for destination: any ViewDestinationable<PresentationConfiguration>) -> (some View)?
Parameters
destinationID
The identifier of the Destination.
Return Value
A strongly-typed
View
associated with the specified Destination.