<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Gauge/init(value:in:label:currentValueLabel:markedValueLabels:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5GaugeV5value2in5label17currentValueLabel06markedH6LabelsACyxq_AA9EmptyViewVq1_Gqd___SNyqd__GxyXEq_yXEq1_yXEtcAJRs0_SBRd__lufc"
  },
  "title" : "init(value:in:label:currentValueLabel:markedValueLabels:)"
}
-->

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

Creates a gauge representing a value within a range.

```
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.

---

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)