Contents

addSymbolEffect(_:options:animated:)

Adds a discrete symbol effect to the bar button item with the specified options and animation.

Declaration

@MainActor @preconcurrency func addSymbolEffect(_ effect: some DiscreteSymbolEffect & 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