---
title: "pointerInteraction(_:regionFor:defaultRegion:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipointerinteractiondelegate/pointerinteraction(_:regionfor:defaultregion:)"
---

# pointerInteraction(_:regionFor:defaultRegion:)

Asks the delegate for a region as the pointer moves within the interaction’s view.

## Declaration

```swift
optional func pointerInteraction(_ interaction: UIPointerInteraction, regionFor request: UIPointerRegionRequest, defaultRegion: UIPointerRegion) -> UIPointerRegion?
```

## Parameters

- `interaction`: This doc://com.apple.uikit/documentation/UIKit/UIPointerInteraction.
- `request`: The doc://com.apple.uikit/documentation/UIKit/UIPointerRegionRequest that describes the pointer’s location in the interaction’s view.
- `defaultRegion`: The doc://com.apple.uikit/documentation/UIKit/UIPointerRegion that represents the entire surface of the interaction’s view.

## Return Value

Return Value A UIPointerRegion in which to apply a pointer style. Return nil to indicate that this interaction typically doesn’t customize the pointer for the current location.

## See Also

### Defining pointer styles for regions

- [pointerInteraction(_:styleFor:)](uikit/uipointerinteractiondelegate/pointerinteraction(_:stylefor:).md)
