title: symbolEffect: drawOn / drawOff + isActive + options
description: iOS 26 / SF Symbols 7 introduces drawOn and drawOff symbol animations. The bridge now exposes them via the isActive trigger form (mirrors SwiftUI symbolEffect(_:options:isActive:)) — flip a bool to draw the symbol on or off. The new SymbolEffectOptions (speed / repeat / nonRepeating) is also wired through, and isActive is opened up for the existing appear / disappear / scale effects. Silent fallback on iOS < 26 for drawOn/drawOff.
These modifiers allow you to customize how SF Symbols are displayed and animated inside views, particularly with the Image component.
symbolRenderingMode
Sets the rendering mode for symbol images within the view.
Type
Options (SymbolRenderingMode)
"monochrome"– A single-color version using the foreground style"hierarchical"– Multiple layers with different opacities for depth (good for semantic coloring)"multicolor"– Uses the symbol's built-in colors"palette"– Allows layered tinting (like using multipleforegroundStylelayers)
Example
Explanation:
symbolRenderingMode="palette"tells the system to render the symbol in multiple layered styles.foregroundStylenow uses an object withprimary,secondary, and optionallytertiarylayers to color those symbol layers individually.
This matches SwiftUI's behavior with
.symbolRenderingMode(.palette)and.foregroundStyle(primary, secondary, tertiary).
symbolVariant
Displays the symbol with a particular visual variant.
Type
Options (SymbolVariants)
"none"– Default symbol with no variant"circle"– Encapsulated in a circle"square"– Encapsulated in a square"rectangle"– Encapsulated in a rectangle"fill"– Filled symbol"slash"– Adds a slash over the symbol (often used to indicate "off" states)
Example
symbolEffect
Applies a symbol animation effect to the view. This can include transitions (appear/disappear), scale, bounce, rotation, breathing, pulsing, and wiggle effects. You can also bind the effect to a value so it animates when the value changes.
Type
There are two forms of usage:
1. Simple effects (transition, scale, etc.)
You can directly assign a symbol effect name:
Examples
2. Value-bound discrete effects
These effects animate when the associated value changes.
Type
Example
In this example, each time isFavorited changes, the bounce animation is triggered.
3. Trigger effects (isActive, mirrors SwiftUI symbolEffect(_:options:isActive:))
In SwiftUI's trigger form, the steady state is isActive = false (symbol visible). Flipping isActive plays the effect's animation; the direction depends on the effect:
Note that drawOn / drawOff describe the animation style (stroke-by-stroke drawing) — not the final state. .drawOn behaves like .disappear with a draw-style animation; .drawOff behaves like .appear with a draw-style animation.
drawOn/drawOffare SF Symbols 7 effects (iOS 26+). On earlier iOS the bridge silently passes content through unchanged.
4. Animation options (SymbolEffectOptions)
Attach options to either the value-bound or the trigger form. Note: SwiftUI treats trigger-form transitions like drawOn / drawOff / appear / disappear as single-shot — repeat is honored most reliably on value-bound effects (pulse, bounce, etc.).
Available Discrete Effects (DiscreteSymbolEffect)
Use these with the value-bound form — animation replays whenever value changes.
Available Trigger Effects (TriggerSymbolEffect)
Use these with the isActive form. drawOn / drawOff are iOS 26+; the rest are iOS 17+.
Full Example
This image uses:
- a hierarchical rendering mode
- a circular variant around the symbol
- a pulsing animation bound to
isNotifiedstate
