effect property

CNSymbolEffect? effect
final

A symbol effect that runs for as long as it is set, such as CNSymbolEffect.pulse() while recording. Set it to null to stop it, or to another effect to switch.

Switching between CNSymbolEffect.drawOff and CNSymbolEffect.drawOn draws the symbol out and back in.

Applies to SF Symbols on iOS 17+ and macOS 14+; each effect's own minimum is listed on CNSymbolEffectType. Elsewhere the icon stays still.

Implementation

final CNSymbolEffect? effect;