PaletteSelectionEffect
The selection effect to apply to a palette item.
Declaration
type PaletteSelectionEffect = 'automatic' | 'custom' | { symbolVariant: SymbolVariants; };struct PaletteSelectionEffectPass a literal, or build one with SwiftUI.PaletteSelectionEffect from import { SwiftUI } from 'swiftui-react-native'.
Type properties
'automatic'SwiftUI.PaletteSelectionEffect.automaticApplies the system's default effect when selected.
'custom'SwiftUI.PaletteSelectionEffect.customDoes not apply any system effect when selected.
Type methods
Overview
You can configure the selection effect of a palette item by using the
View.paletteSelectionEffect(_:) view modifier.
From Apple’s SwiftUI documentation. Code samples there are Swift.
Used by
See also
More in Lists and tables.
- ListItemTintA tint effect configuration that you can apply to content in a list.
- ListSectionSpacingThe spacing options between two adjacent sections in a list.
- SectionCollectionAn opaque collection representing the sections of view.
- SensoryFeedbackSelectionFeedbackFeedback that can be played in response to a specific UI element's values changing.
- TableColumnContentA type used to represent columns within a table.