<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 10.0.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/MeasurementFormatter/string(from:)-6rcb1",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So22NSMeasurementFormatterC10FoundationE6string4fromSSAC11MeasurementVyxG_tSo6NSUnitCRbzlF"
  },
  "title" : "string(from:)"
}
-->

# string(from:)

Creates and returns a localized string representation of the provided measurement.

```
func string<UnitType>(from measurement: Measurement<UnitType>) -> String where UnitType : Unit
```

## Parameters

`measurement`

The measurement to be represented.

## Return Value

A user-readable string that represents the measurement.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)