Contents

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