NavigationViewDestination
@MainActor
public final class NavigationViewDestination<EventType, ViewType, DestinationType, ContentType, TabType, InteractorType> : NavigatingViewDestinationable where EventType : EventTypeable, 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.
-
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<EventType, DestinationType, ContentType, TabType, InteractorType> { get set } -
Declaration
Swift
@MainActor public var groupInternalState: GroupDestinationInternalState<DestinationType, ContentType, TabType> { get set } -
Declaration
Swift
@MainActor public var stateModel: (any StateModeling<NavigationViewDestination<EventType, ViewType, DestinationType, ContentType, TabType, InteractorType>>)? { get set } -
The initializer.
Declaration
Swift
@MainActor public init(destinationType: DestinationType, destinationConfigurations: DestinationConfigurations? = nil, navigationConfigurations: NavigationConfigurations? = nil, parentDestination: UUID? = nil, state: (any StateModeling<NavigationViewDestination<EventType, ViewType, DestinationType, ContentType, TabType, InteractorType>>)? = nil)Parameters
destinationTypeThe type of Destination.
destinationConfigurationsThe Destination presentation configurations associated with this Destination.
navigationConfigurationsThe system navigation events associated with this Destination.
parentDestinationThe identifier of the parent Destination.
View on GitHub