<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/PaletteSelectionEffect",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI22PaletteSelectionEffectV"
  },
  "title" : "PaletteSelectionEffect"
}
-->

# PaletteSelectionEffect

The selection effect to apply to a palette item.

```
struct PaletteSelectionEffect
```

## Overview

You can configure the selection effect of a palette item by using the
[`paletteSelectionEffect(_:)`](/documentation/SwiftUI/View/paletteSelectionEffect(_:)) view modifier.

## Topics

### Getting palette selection effects

[`static let automatic: PaletteSelectionEffect`](/documentation/SwiftUI/PaletteSelectionEffect/automatic)

Applies the system’s default effect when selected.

[`static let custom: PaletteSelectionEffect`](/documentation/SwiftUI/PaletteSelectionEffect/custom)

Does not apply any system effect when selected.

[`static func symbolVariant(SymbolVariants) -> PaletteSelectionEffect`](/documentation/SwiftUI/PaletteSelectionEffect/symbolVariant(_:))

Applies the specified symbol variant when selected.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)