---
title: "string(from:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/measurementformatter/string(from:)-4hwjz"
---

# string(from:)

Creates and returns a localized string representation of the provided unit of measure.

## Declaration

```swift
func string(from unit: Unit) -> String
```

## Parameters

- `unit`: The unit of measure to be represented.

## Return Value

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.

## See Also

### Converting Measurements

- [string(from:)](foundation/measurementformatter/string(from:)-wt9y.md)
- [string(from:)](foundation/measurementformatter/string(from:)-6rcb1.md)
