NavigationViewDestination

@MainActor
public final class NavigationViewDestination<UserInteractionType, ViewType, DestinationType, ContentType, TabType, InteractorType> : NavigatingViewDestinationable where UserInteractionType : UserInteractionTypeable, ViewType : NavigatingDestinationInterfacing, DestinationType : RoutableDestinations, ContentType : ContentTypeable, TabType : TabTypeable, InteractorType : InteractorTypeable

A Destination class whose associated user interface is a View which contains a NavigationStack.

This is a generic Destination that can be used to represent most NavigationStack-based Views in a SwiftUI-based app.

  • id

    Declaration

    Swift

    @MainActor
    public let id: UUID
  • Declaration

    Swift

    @MainActor
    public let type: DestinationType
  • Declaration

    Swift

    @MainActor
    public var view: ViewType? { get set }
  • Declaration

    Swift

    @MainActor
    public var internalState: DestinationInternalState<UserInteractionType, DestinationType, ContentType, TabType, InteractorType> { get set }
  • Declaration

    Swift

    @MainActor
    public var groupInternalState: GroupDestinationInternalState<DestinationType, ContentType, TabType> { get set }
  • The initializer.

    Declaration

    Swift

    @MainActor
    public init(destinationType: DestinationType, destinationConfigurations: DestinationConfigurations? = nil, navigationConfigurations: NavigationConfigurations? = nil, parentDestination: UUID? = nil)

    Parameters

    destinationType

    The type of Destination.

    destinationConfigurations

    The Destination presentation configurations associated with this Destination.

    navigationConfigurations

    The system navigation events associated with this Destination.

    parentDestination

    The identifier of the parent Destination.

  • Declaration

    Swift

    @MainActor
    public func prepareForPresentation()