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

Gauge

Creates a gauge showing a value within a range and describes the gauge’s purpose and current value

Explore Gauge on iPhone in portrait, with SwiftUI code and Apple API documentation.

Gauge(value: 0.42) {
    Text("Foo")
}
iOS 16.0+ iPadOS 16.0+ macOS 13.0+ watchOS 7.0+ visionOS 1.0+

Every available iPhone screenshot for Gauge.

2 views