addSymbolEffect(_:options:animated:completion:)
Adds a discrete symbol effect to the image view with the specified options and animation.
Declaration
@MainActor @preconcurrency func addSymbolEffect(_ effect: some IndefiniteSymbolEffect & SymbolEffect, options: SymbolEffectOptions = .default, animated: Bool = true, completion: UISymbolEffectCompletion? = nil)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.
- completion:
A completion handler the system calls after the effect’s addition is complete.
See Also
Configuring symbol effects
addSymbolEffect(_:options:animated:completion:)addSymbolEffect(_:options:animated:completion:)setSymbolImage(_:contentTransition:options:completion:)removeSymbolEffect(ofType:options:animated:completion:)removeSymbolEffect(ofType:options:animated:completion:)removeSymbolEffect(ofType:options:animated:completion:)removeAllSymbolEffects(options:animated:)UISymbolEffectCompletionUISymbolEffectCompletionContext