DistanceFormatter
Provides appropriately formatted, localized descriptions of linear distances.
-
Indicates the most recently used unit
-
Intializes a new
DistanceFormatter
. -
-
-
Returns a more human readable
String
from a givenCLLocationDistance
.The user’s
Locale
is used here to set the units. -
-
-
Returns an attributed string containing the formatted, converted distance.
NSAttributedStringKey.quantity
is applied to the numeric quantity.