HoverEffect

An effect applied when the pointer hovers over a view.

StructureiOS 13.4+tvOS 16.0+HoverEffect in SwiftUI

Declaration

React
type HoverEffect = 'automatic' | 'highlight' | 'lift';
Swift
struct HoverEffect

Pass a literal, or build one with SwiftUI.HoverEffect from import { SwiftUI } from 'swiftui-react-native'.

Type properties

  • 'automatic'SwiftUI.HoverEffect.automatic

    An effect that attempts to determine the effect automatically. This is the default effect.

  • 'highlight'SwiftUI.HoverEffect.highlight

    An effect that morphs the pointer into a platter behind the view and shows a light source indicating position.

  • An effect that slides the pointer under the view and disappears as the view scales up and gains a shadow.

Used by

See also

More in Gestures and input.