Current Value Gauge
Creates a gauge showing a value within a range and that describes the gauge’s purpose and current value
Platform Compatibility
iOS 16.0+ iPadOS 16.0+ macOS 13.0+ watchOS 7.0+ visionOS 1.0+
Tags
SwiftUI Code
@State private var currentValue = 0.42
var body: some View {
VStack {
Gauge(value: currentValue) {
Text("Foo")
} currentValueLabel: {
Text("\(currentValue)")
}
}
}
Found an issue or have a suggestion?
Created: June 3, 2025Updated: June 3, 2025