<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/symbolEffect(_:options:isActive:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE12symbolEffect_7options8isActiveQrqd___7Symbols06SymbolE7OptionsVSbtAG010IndefinitejE0Rd__AG0jE0Rd__lF"
  },
  "title" : "symbolEffect(_:options:isActive:)"
}
-->

# symbolEffect(_:options:isActive:)

Returns a new view with a symbol effect added to it.

```
@export(implementation) nonisolated func symbolEffect<T>(_ effect: T, options: SymbolEffectOptions = .default, isActive: Bool = true) -> some View where T : IndefiniteSymbolEffect, T : SymbolEffect
```

## Parameters

`effect`

A symbol effect to add to the view. Existing effects
added by ancestors of the view are preserved, but may be
overridden by the new effect. Added effects will be applied
to the [`Image`](/documentation/SwiftUI/Image) views contained by the child view.

`isActive`

whether the effect is active or inactive.

## Return Value

a copy of the view with a symbol effect added.

## Discussion

The following example adds a repeating pulse effect to two
symbol images:

```
VStack {
    Image(systemName: "bolt.slash.fill")
    Image(systemName: "folder.fill.badge.person.crop")
}
.symbolEffect(.pulse)
```

---

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)