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

The lowest possible value of the gauge.

The highest possible value of the gauge.

The current value of the gauge.