NavigationView
public struct NavigationView : View
A view that provides navigation functionalities.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Initializes a new instance of
NavigationView.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Parameters
modelThe view model containing the state and data for the navigation view.
actionA closure that handles navigation actions.
-
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
-
ViewModel for the NavigationView. This class is responsible for handling the navigation logic and providing data to the view. It observes the navigation progress, destination arrival, and waypoint arrival.
See moreImportant
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public final class ViewModel : ObservableObject
-
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) -> ()) -> NavigationViewParameters
actionA closure that is called with the new
CGSizeas a parameter.Return Value
A modified instance of
NavigationViewwith the size change closure set.
TomTom SDK for iOS (0.66.0)
NavigationView