iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

Gauge

Min Max Current Value Gauge

Creates a gauge showing a value within a range and describes the gauge’s current, minimum, and maximum values

Explore Min Max Current Value Gauge on iPhone in portrait, with SwiftUI code and Apple API documentation.

Gauge(value: 0.42) {
    Text("Foo")
} currentValueLabel: {
    Text("42")
} minimumValueLabel: {
    Text("0")
} maximumValueLabel: {
    Text("100")
}
iOS 16.0+ iPadOS 16.0+ macOS 13.0+ watchOS 7.0+ visionOS 1.0+

Every available iPhone screenshot for Min Max Current Value Gauge.

2 views