Enumeration

CPTimeRemainingColor

The color the system uses when displaying the time remaining for a trip.

Declaration

enum CPTimeRemainingColor : UInt

Overview

The system determines the shade of each color based on the tripEstimateStyle for the map template.

Topics

Colors

case `default`

The system default color.

case green

A shade of green.

case orange

A shade of orange.

case red

A shade of red.

See Also

Providing Trip Estimates

func updateEstimates(CPTravelEstimates, for: CPTrip)

Updates travel estimates, such as arrival time and remaining time and distance for a trip.

func update(CPTravelEstimates, for: CPTrip, with: CPTimeRemainingColor)

Updates travel estimates, such as arrival time and remaining time and distance for a trip, with the specified time-remaining color.

var tripEstimateStyle: CPTripEstimateStyle

The style that the map template uses when displaying trip estimates during active nagivation.

enum CPTripEstimateStyle

The set of display styles for trip estimates.