One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

HoverEffect

struct · iOS 13.4+ · SDK 27.1

struct HoverEffect

An effect applied when the pointer hovers over a view.

Members (3)

get · iOS 13.4+

lift

TypeScript
static get lift(): HoverEffect
Swift declaration
static var lift: HoverEffect { get }

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

get · iOS 13.4+

automatic

TypeScript
static get automatic(): HoverEffect
Swift declaration
static var automatic: HoverEffect { get }

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

get · iOS 13.4+

highlight

TypeScript
static get highlight(): HoverEffect
Swift declaration
static var highlight: HoverEffect { get }

An effect that morphs the pointer into a platter behind the view and shows a light source indicating position. On tvOS, it applies a projection effect accompanied with a specular highlight on the view when contained within a focused view. It also incorporates motion effects to produce a parallax effect by adjusting the projection matrix and specular offset.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HoverEffect.init(_:)

This declaration needs Swift generic type arguments. (no canonical witness for E)

All SwiftUICore types →