<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ScaledMetric",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12ScaledMetricV"
  },
  "title" : "ScaledMetric"
}
-->

# ScaledMetric

A dynamic property that scales a numeric value.

```
@propertyWrapper struct ScaledMetric<Value> where Value : BinaryFloatingPoint
```

## Topics

### Creating the metric

[`init(wrappedValue:)`](/documentation/SwiftUI/ScaledMetric/init(wrappedValue:))

Creates the scaled metric with an unscaled value using the default
scaling.

[`init(wrappedValue:relativeTo:)`](/documentation/SwiftUI/ScaledMetric/init(wrappedValue:relativeTo:))

Creates the scaled metric with an unscaled value and a text style to
scale relative to.

### Getting the metric

[`wrappedValue`](/documentation/SwiftUI/ScaledMetric/wrappedValue)

The value scaled based on the current environment.



---

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)