The behavior to use when requesting any repetition on a `SymbolEffect`.
Members (3)
get · iOS 18.0+
continuous
TypeScript
static get continuous(): SymbolEffectOptions_RepeatBehavior
Swift declaration
static var continuous: SymbolEffectOptions.RepeatBehavior { get }
A repeat behavior that prefers to repeat indefinitely, using continuous animations if available.
Continuous animations have an intro, a body that runs as long as the effect is enabled, and an outro.
If available these animations provide a smoother animation when an effect repeats indefinitely.
- Returns: A new behavior that prefers to repeat indefinitely with continuous animations.
get · iOS 18.0+
periodic
TypeScript
static get periodic(): SymbolEffectOptions_RepeatBehavior
Swift declaration
static var periodic: SymbolEffectOptions.RepeatBehavior { get }
A repeat behavior that prefers to repeat indefinitely using periodic animations.
Periodic animations play the effect at regular intervals starting and stopping each time.
- Returns: A new behavior that prefers to repeat indefinitely using periodic animation.
A repeat behavior with a preferred play count and delay using periodic animations.
Periodic animations play the effect at regular intervals starting and stopping each time.
- Parameter count: The preferred number of times to play the
effect, or nil to request it play indefinitely. Very
large or small values may be clamped.
- Parameter delay: The preferred delay between repetitions,
in seconds, or nil to request the default delay.
- Returns: A new behavior with the preferred
play count and delay using periodic animations.