---
title: "init(wrappedValue:relativeTo:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/scaledmetric/init(wrappedvalue:relativeto:)"
---

# init(wrappedValue:relativeTo:)

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

## Declaration

```swift
init(wrappedValue: Value, relativeTo textStyle: Font.TextStyle)
```

## See Also

### Creating the metric

- [init(wrappedValue:)](swiftui/scaledmetric/init(wrappedvalue:).md)
