NavigationDestinationInterfaceState
@MainActor
public final class NavigationDestinationInterfaceState<Destination> : NavigationDestinationStateable where Destination : Destinationable
Manages state for a Destination’s interface, holding a reference to its associated Destination and a navigator object which manages the state of the interface’s navigation stack.
-
The Destination which user interaction events are sent to.
Declaration
Swift
@MainActor public var destination: Destination { get set }
-
An object which manages the state of the associated interface’s navigation stack.
Declaration
Swift
@MainActor public var navigator: any DestinationPathNavigating { get set }
-
The initializer.
Declaration
Swift
@MainActor public init(destination: Destination)
Parameters
destination
The Destination associated with this state model.