Gauge is a new SwiftUI view introduced in iOS 16 (SwiftUI 4). It is a view that shows a value within a range.
In the real world, a gauge is an instrument or device for measuring the magnitude, amount, or contents of something.
Gauge is similar to Slider. You can think of Gauge as a combination of ProgressView and Slider.
This article I recommend today will introduce the use of Gauge, several styles of label display, and how to customize the Gauge view.
References:
SwiftUI Gauge
Follow me on:
Comments