string(from:)
Creates and returns a localized string representation of the provided unit of measure.
Declaration
func string(from unit: Unit) -> StringParameters
- unit:
The unit of measure to be represented.
Return Value
A user-readable string that represents the unit of measure. If the unit cannot be localized, the unit’s symbol value is used.