---
title: "pointerInteraction(_:willExit:animator:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipointerinteractiondelegate/pointerinteraction(_:willexit:animator:)"
---

# pointerInteraction(_:willExit:animator:)

Informs the delegate when the pointer exits a given region.

## Declaration

```swift
optional func pointerInteraction(_ interaction: UIPointerInteraction, willExit region: UIPointerRegion, animator: any UIPointerInteractionAnimating)
```

## Parameters

- `interaction`: This doc://com.apple.uikit/documentation/UIKit/UIPointerInteraction.
- `region`: The doc://com.apple.uikit/documentation/UIKit/UIPointerRegion that represents the entire surface of the interaction’s view.
- `animator`: The animator the framework runs when the pointer exists the region. Add animations to run them alongside the pointer’s exit animation.

## See Also

### Handling animations for pointer regions

- [pointerInteraction(_:willEnter:animator:)](uikit/uipointerinteractiondelegate/pointerinteraction(_:willenter:animator:).md)
