<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: -",
    "tvOS: 17.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIBarButtonItem/addSymbolEffect(_:options:animated:)-3iew0",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So15UIBarButtonItemC5UIKitE15addSymbolEffect_7options8animatedyx_7Symbols0fG7OptionsVSbtAG010IndefinitefG0RzAG0fG0RzlF"
  },
  "title" : "addSymbolEffect(_:options:animated:)"
}
-->

# addSymbolEffect(_:options:animated:)

Adds an indefinite symbol effect to the bar button item with the specified options and animation.

```
@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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)