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.
-
Declaration
Swift
public typealias StateModel = DefaultDestinationState<Destination> -
The Destination which 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 } -
Declaration
Swift
@MainActor public var stateModel: StateModel { get set } -
The initializer.
Declaration
Swift
@MainActor public init(destination: Destination, state: StateModel? = nil)Parameters
destinationThe Destination associated with this state model.
View on GitHub