ViewModel
public struct ViewModel
The view model used to populate the next maneuver view.
-
Creates and returns a
GuidanceNextManeuverView.ViewModel.Declaration
Swift
public init(maneuverIcon: UIImage? = nil, distance: Measurement<UnitLength>? = nil, streetName: String? = nil, distanceFormatter: MeasurementFormatter = .currentMediumUnitFormatter, accessibilityDistanceFormatter: MeasurementFormatter = .currentLongUnitFormatter)Parameters
maneuverIconThe icon of the next maneuver to be displayed.
distanceThe travel distance of the next destination to be displayed.
streetNameThe name of the next maneuver street to be displayed.
distanceFormatterThe
MeasurementFormatterused to format the distance information. The default value: UsesMeasurementFormatter.currentMediumUnitFormatter.accessibilityDistanceFormatterThe
MeasurementFormatterused to format the distance information for accessibility VoiceOver. The default value: UsesMeasurementFormatter.currentLongUnitFormatter.
View on GitHub
ViewModel Structure Reference