Instance Method

string(fromDistance:)

Creates a string representation of the specified distance.

Declaration

func string(fromDistance distance: CLLocationDistance) -> String

Parameters

distance

The distance value that you want to convert to a string.

Return Value

A user-readable string that describes the distance based on the formatter settings.

See Also

Converting Distances

func distance(from: String) -> CLLocationDistance

Returns the distance value parsed from the specified string.