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 ViewBuilder method that returns a strongly-typed View associated with the specified Destiantion.

    Declaration

    Swift

    @ViewBuilder
    @MainActor
    func destinationView(for destination: any ViewDestinationable<DestinationType, ContentType, TabType>) -> (some View)?

    Parameters

    destinationID

    The identifier of the Destination.

    Return Value

    A strongly-typed View associated with the specified Destination.