addSymbolEffect(_:options:animated:)
Adds an indefinite symbol effect to the bar button item with the specified options and animation.
Declaration
@MainActor @preconcurrency func addSymbolEffect(_ effect: some IndefiniteSymbolEffect & SymbolEffect, options: SymbolEffectOptions = .default, animated: Bool = true)Parameters
- effect:
The symbol effect to add.
- options:
The options for the symbol effect.
- animated:
A Boolean value that indicates whether to animate the addition of a scale, appear, or disappear effect.
See Also
Configuring symbol effects
isSymbolAnimationEnabledaddSymbolEffect(_:options:animated:)addSymbolEffect(_:options:animated:)setSymbolImage(_:contentTransition:options:)removeSymbolEffect(ofType:options:animated:)removeSymbolEffect(ofType:options:animated:)removeSymbolEffect(ofType:options:animated:)removeAllSymbolEffects(options:animated:)