Contents

UIPointerInteraction

An interaction that enables support for effects on a view or customizes the pointer’s appearance within a region of an app.

Declaration

@MainActor class UIPointerInteraction

Overview

If you use a UIButton as an interface object, use the button’s isPointerInteractionEnabled and pointerStyleProvider to customize the proposed effect before constructing your own custom pointer effect using a UIPointerInteraction.

Topics

Create pointer interactions

Manage pointer interactions

Activate pointer interactions

Trigger a pointer update

See Also

Essentials