---
title: "init(value:in:label:currentValueLabel:markedValueLabels:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/gauge/init(value:in:label:currentvaluelabel:markedvaluelabels:)"
---

# init(value:in:label:currentValueLabel:markedValueLabels:)

Creates a gauge representing a value within a range.

## Declaration

```swift
nonisolated init<V>(value: V, in bounds: ClosedRange<V> = 0...1, @ContentBuilder label: () -> Label, @ContentBuilder currentValueLabel: () -> CurrentValueLabel, @ContentBuilder markedValueLabels: () -> MarkedValueLabels) where BoundsLabel == EmptyView, V : BinaryFloatingPoint
```

## Parameters

- `value`: The value to show in the instance.
- `bounds`: The range of the valid values. Defaults to 0...1.
- `label`: A view that describes the purpose of the gauge.
- `currentValueLabel`: A view that describes the current value of the gauge.
- `markedValueLabels`: A content builder containing tagged views, each of which describes a particular value of the gauge. The method ignores this parameter.

## See Also

### Creating a gauge

- [init(value:in:label:)](swiftui/gauge/init(value:in:label:).md)
- [init(value:in:label:currentValueLabel:)](swiftui/gauge/init(value:in:label:currentvaluelabel:).md)
- [init(value:in:label:currentValueLabel:minimumValueLabel:maximumValueLabel:)](swiftui/gauge/init(value:in:label:currentvaluelabel:minimumvaluelabel:maximumvaluelabel:).md)
- [init(value:in:label:currentValueLabel:minimumValueLabel:maximumValueLabel:markedValueLabels:)](swiftui/gauge/init(value:in:label:currentvaluelabel:minimumvaluelabel:maximumvaluelabel:markedvaluelabels:).md)
