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.-
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
stateThe current state of the navigation stack view.
waypointArrivalModelThe model for waypoint arrival view.
instructionModelThe model for instruction stack view.
speedLimitThe view model for speed limit.
actionA closure that handles actions from the navigation stack view.
-
The content and behavior of the view.
Declaration
Swift
public var body: some View { get } -
Represents different types of actions that can take place in the navigation stack view.
See moreImportant
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.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum ArrivalAction -
Represents actions taken based on an instruction.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum InstructionAction -
Represents actions taken for confirmation.
See moreImportant
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.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum ErrorAction -
Represents the various states of the NavigationStackView.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public enum State
-
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) -> ()) -> NavigationStackViewParameters
actionA closure that takes a
CGSizeparameter.Return Value
A modified instance of
NavigationStackViewwith the size change closure set.
TomTom SDK for iOS (0.66.0)
NavigationStackView