pointerInteraction(_:regionFor:defaultRegion:)
Asks the delegate for a region as the pointer moves within the interaction’s view.
Declaration
optional func pointerInteraction(_ interaction: UIPointerInteraction, regionFor request: UIPointerRegionRequest, defaultRegion: UIPointerRegion) -> UIPointerRegion?Parameters
- interaction:
This Uipointerinteraction.
- request:
The Uipointerregionrequest that describes the pointer’s location in the interaction’s view.
- defaultRegion:
The Uipointerregion that represents the entire surface of the interaction’s view.
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.