Model
public struct Model
A model representing the data for the ManeuverView
.
This model contains various properties that describe the maneuver, such as distance text, maneuver icon names, next street or intersection, road numbers, and more.
Important
This is a Public Preview API. It may be changed or removed at any time.-
init(distanceText:
distanceUnitText: maneuverIconName: combinedManeuverIconName: nextStreetOrIntersection: roadNumbers: roadExitNumber: muted: laneIcons: ) Initializes a new instance of the
ManeuverView.Model
.Important
This is a Public Preview API. It may be changed or removed at any time.
Declaration
Swift
public init( distanceText: String? = nil, distanceUnitText: String? = nil, maneuverIconName: ImageName? = nil, combinedManeuverIconName: ImageName? = nil, nextStreetOrIntersection: String? = nil, roadNumbers: [RoadNumberView.RoadNumber]? = nil, roadExitNumber: String? = nil, muted: Bool = false, laneIcons: [ImageName]? = nil )
Parameters
distanceText
The text representing the distance.
distanceUnitText
The text representing the distance unit.
maneuverIconName
The name of the maneuver icon.
combinedManeuverIconName
The name of the combined maneuver icon.
nextStreetOrIntersection
The name of the next street or intersection.
roadNumbers
An array of road numbers.
roadExitNumber
The road exit number.
muted
A boolean indicating if the sound is muted.
laneIcons
An array of lane icon names.
-
The text representing the distance.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var distanceText: String?
-
The text representing the distance unit.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var distanceUnitText: String?
-
The name of the maneuver icon.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var maneuverIconName: ImageName?
-
The name of the combined maneuver icon.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var combinedManeuverIconName: ImageName?
-
The name of the next street or intersection.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var nextStreetOrIntersection: String?
-
An array of road numbers.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var roadNumbers: [RoadNumberView.RoadNumber]?
-
The road exit number.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var roadExitNumber: String?
-
A boolean indicating if the sound is muted.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var muted: Bool
-
An array of lane icon names.
Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public var laneIcons: [ImageName]?