Creates a time interval gauge, letting you specify whether the gauge fills or empties as time passes.
- watchOS 5.0+
The style defining the gauge’s visual appearance. For a list of valid styles, see
The gauge’s colors. These colors are displayed as a gradient.
The location of each color along the gauge. Locations are values between
nil, the colors are evenly spaced along the gauge.
The start time and date.
The starting position for the gague. This is a value between
The end time and date. This value must be later than or equal to the start date.
The end position of the gague. This is a value between
A newly instantiated time interval gauge provider.
The gauge shows the amount of time that has elapsed, based on the current time relative to the specified start and end dates. You can specify whether the gauge counts up or counts down using the
startis less than the
end, the gauge fills as it counts up from the start time to the end time.
startis greater than the
end, the gauge empties as it counts down from the start time to the end time.
On circular gauges, the fill fractions also determine the position of the start and end points along the circle.
0indicates the top of the circle. Values increase as you move around the circle clockwise, with
1back at the top again.
On corner gauges, you should always use the
1as your fractional values, to ensure that you’re utilizing the whole gauge.
If you provide both colors and locations, then the
gauge arrays must be the same length.