Enumeration 列挙

TimelineView.Context.Cadence

A rate at which timeline views can receive updates.

Declaration 宣言

enum Cadence

Overview 概要

Use the cadence presented to content in a TimelineView 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 TimelineView.Context.Cadence.seconds or TimelineView.Context.Cadence.minutes.

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

Topics 話題

Getting Cadences

Comparing Cadences

Relationships 関係

Conforms To 次に準拠

See Also 参照

Getting the Cadence