Class

UIPointerInteraction

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

Declaration

class UIPointerInteraction : NSObject

Overview

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

Topics

Creating Pointer Interactions

init(delegate: UIPointerInteractionDelegate?)

Initializes a pointer interaction object with a specified delegate object.

Managing Pointer Interactions

var delegate: UIPointerInteractionDelegate?

An object that responds to pointer movements.

protocol UIPointerInteractionDelegate

An interface for handling pointer movements within the interaction's view.

Activating Pointer Interactions

var isEnabled: Bool

A Boolean value that indicates whether the pointer interaction is enabled.

Triggering a Pointer Update

func invalidate()

Causes the interaction to update the pointer in response to an event.

Relationships

Inherits From

See Also

Essentials

protocol UIPointerInteractionDelegate

An interface for handling pointer movements within the interaction's view.

Integrating Pointer Interactions into Your iPad App

Support touch interactions in your iPad app by adding pointer interactions to your views.