NavigationStackView
public struct NavigationStackView : View
A view that is responsible for displaying the navigation stack content and handling user interactions.
Important
This is a Public Preview API. It may be changed or removed at any time.Represents different types of actions that can take place in the navigation stack view.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum Action
Represents actions taken upon arrival.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum ArrivalAction
The content and behavior of the view.
Declaration
Swift
public var body: some View { get }
Represents actions taken for confirmation.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum ConfirmationAction
Represents actions taken when an error occurs.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum ErrorAction
Initializes a new instance of NavigationStackView
.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public init(
state: NavigationStackView.State,
waypointArrivalModel: WaypointArrivalView.Model,
instructionModel: InstructionStackView.Model,
speedLimit: SpeedLimitViewModel,
action: @escaping (NavigationStackView.Action) -> ()
)
Parameters
state
|
The current state of the navigation stack view. |
waypointArrivalModel
|
The model for waypoint arrival view. |
instructionModel
|
The model for instruction stack view. |
speedLimit
|
The view model for speed limit. |
action
|
A closure that handles actions from the navigation stack view. |
Represents actions taken based on an instruction.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum InstructionAction
Sets a closure to be called when the size changes.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public func onChangedSize(_ action: @escaping (CGSize) -> ()) -> NavigationStackView
Parameters
action
|
A closure that takes a |
Return Value
A modified instance of NavigationStackView
with the size change closure set.
Represents the various states of the NavigationStackView.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum State