
As Apple describes Pointer Interactions in its support document:
Pointer Interactions: Support pointer interactions in your custom controls and views.
iPadOS 13.4 introduces dynamic pointer effects and behaviours that enhance the experience of using an iPad with an external input device, like a trackpad or mouse. As people use an input device, iPadOS automatically adapts the pointer to the current context, providing rich visual feedback and the precision needed to enhance productivity and simplify everyday tasks.
Note:
UIPointer Interaction is only related to the iPad / iPadOS app
Initial Step:
Add ‘UIPointerInteractionDelegate’ in your View Controller’s Class Declaration
For UIButton:
Out-of-Box Implementation:
button.isPointerInteractionEnabled = true
UIView and Custom Implementation for UIButton:
(more…)