case live
Updates the view continuously.
case seconds
Updates the view approximately once per second.
case minutes
Updates the view approximately once per minute.
Availability 有効性
Technology
enum Cadence
Use the cadence presented to content in a Timeline
to hide information that updates faster than the view’s current update rate. For example, you could hide the millisecond component of a digital timer when the cadence is Timeline
or Timeline
.
Because this enumeration conforms to the Comparable
protocol, you can compare cadences with relational operators. Slower cadences have higher values, so you could perform the check described above with the following comparison:
let hideMilliseconds = cadence > .live
case live
case seconds
case minutes
static func ... (Self) -> PartialRangeFrom <Self>
static func ... (Self) -> PartialRangeThrough <Self>
static func ... (Self, Self) -> ClosedRange <Self>
static func ..< (Self) -> PartialRangeUpTo <Self>
static func ..< (Self, Self) -> Range<Self>
static func < (TimelineView <Schedule, Content>.Context.Cadence, TimelineView <Schedule, Content>.Context.Cadence) -> Bool
static func > (Self, Self) -> Bool
static func <= (Self, Self) -> Bool
static func >= (Self, Self) -> Bool
static func == (TimelineView <Schedule, Content>.Context.Cadence, TimelineView <Schedule, Content>.Context.Cadence) -> Bool
func hash(into: inout Hasher)
var hashValue : Int
let cadence: TimelineView <Schedule, Content>.Context.Cadence