---
title: "symbolEffect(_:options:isActive:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/symboleffect(_:options:isactive:)"
---

# symbolEffect(_:options:isActive:)

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

## Declaration

```swift
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 doc://com.apple.SwiftUI/documentation/SwiftUI/Image views contained by the child view.
- `isActive`: Whether the effect is active or inactive.

## Return Value

Return Value A copy of the view with a symbol effect added.

## Discussion

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)

## See Also

### Managing symbol effects

- [symbolEffect(_:options:value:)](swiftui/view/symboleffect(_:options:value:).md)
- [symbolEffectsRemoved(_:)](swiftui/view/symboleffectsremoved(_:).md)
- [SymbolEffectTransition](swiftui/symboleffecttransition.md)
