GuidanceEstimatedArrivalView

@IBDesignable
open class GuidanceEstimatedArrivalView : UIView

View for displaying the estimated arrival information, which includes estimated time of arrival (ETA), time to arrival (TTA), and travel distance to destination.

  • Sets the text color of the estimated time of arrival information. The default value is UIColor.colorForeground.

    Declaration

    Swift

    public var primaryInfoTextColor: UIColor { get set }
  • Sets the text color of duration and distance information. The default value is UIColor.colorForegroundSecondary.

    Declaration

    Swift

    public var secondaryInfoTextColor: UIColor { get set }
  • Sets the text alignment of all textual information. The default value is NSTextAlignment.center.

    Declaration

    Swift

    public var textAlignment: NSTextAlignment { get set }
  • The estimated time of arrival to be displayed.

    Declaration

    Swift

    public var estimatedTimeOfArrival: Date? { get set }
  • The travel time duration to be displayed.

    Declaration

    Swift

    public var duration: Measurement<UnitDuration>? { get set }
  • The travel distance to destination to be displayed.

    Declaration

    Swift

    public var distance: Measurement<UnitLength>? { get set }
  • The DateFormatter used to format the ETA information. The default value is DateFormatter.currentShortTimeFormatter.

    Declaration

    Swift

    public var estimatedTimeOfArrivalFormatter: DateFormatter { get set }
  • The MeasurementFormatter used to format the duration information. The default value is MeasurementFormatter.currentMediumUnitFormatter.

    Declaration

    Swift

    public var durationFormatter: MeasurementFormatter { get set }
  • The MeasurementFormatter used to format the distance information. The default value is MeasurementFormatter.currentMediumUnitFormatter.

    Declaration

    Swift

    public var distanceFormatter: MeasurementFormatter { get set }