94.1% of iOS users can use this modifier
iOS 16+ required
.gaugeStyle() Basic gaugeStyle modifier
Apply the .gaugeStyle() modifier to a view
Text("Hello, World!")
.gaugeStyle()If your app supports iOS versions older than 16, you can use #available to conditionally apply this modifier:
if #available(iOS 16, *) {
myView.gaugeStyle()
} else {
// Fallback for older iOS versions
myView
}Check the code examples above for specific #available patterns with this modifier.
The .gaugeStyle() modifier requires iOS 16 or later. This means 94.1% of current iOS users can use this modifier.
Yes! Use #available(iOS 16, *) to conditionally apply this modifier only on devices running iOS 16 or later, with a fallback for older versions.
Apply the .gaugeStyle() modifier to any SwiftUI view. Check the code examples above for usage patterns.
Visit the official Apple documentation for detailed information.