---
title: UIPointerInteraction
framework: uikit
role: symbol
role_heading: Class
path: uikit/uipointerinteraction
---

# UIPointerInteraction

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

## Declaration

```swift
@MainActor class UIPointerInteraction
```

## Overview

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. note: In iPadOS, the visual interactions when using mouse or trackpad input versus Apple Pencil input are slightly different: For example, pointer styles such as the system pointer aren’t visible while using Apple Pencil. However, both input devices support effect-based pointers, but have a slightly different visual appearance depending on which device is in use.

## Topics

### Create pointer interactions

- [init(delegate:)](uikit/uipointerinteraction/init(delegate:).md)

### Manage pointer interactions

- [delegate](uikit/uipointerinteraction/delegate.md)
- [UIPointerInteractionDelegate](uikit/uipointerinteractiondelegate.md)

### Activate pointer interactions

- [isEnabled](uikit/uipointerinteraction/isenabled.md)

### Trigger a pointer update

- [invalidate()](uikit/uipointerinteraction/invalidate().md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [UIInteraction](uikit/uiinteraction.md)

## See Also

### Essentials

- [UIPointerInteractionDelegate](uikit/uipointerinteractiondelegate.md)
- [Integrating pointer interactions into your iPad app](uikit/integrating-pointer-interactions-into-your-ipad-app.md)
- [Enhancing your iPad app with pointer interactions](uikit/enhancing-your-ipad-app-with-pointer-interactions.md)
