View Source Gauge
<Gauge>
Displays a value within a range.
Overview
Several child elements can be used to customize how <Gauge>
is displayed.
<Gauge value="0.5">
<Text template="label">50%</Text>
<Text template="currentValueLabel">0.5</Text>
<Text template="minimumValueLabel">0</Text>
<Text template="maximumValueLabel">1</Text>
</Gauge>
Attributes
Children
currentValueLabel
- Describes the current value.minimumValueLabel
- Describes the lowest possible value.maximumValueLabel
- Describes the highest possible value.
SwiftUI Documentation
See SwiftUI.Gauge
for more details on this View.
References
Link to this reference
lowerBound
The lowest possible value of the gauge.
Link to this reference
upperBound
The highest possible value of the gauge.
Link to this reference
value
The current value of the gauge.