Adds an action to perform when the user moves the pointer over or away from the view’s frame.
- macOS 10.15+
- Xcode 11.0+
The action to perform whenever the pointer enters or exits this view’s frame. If the pointer is in the view’s frame, the
trueas a parameter; otherwise,
A view that triggers
action when the pointer enters and exits this view’s frame.
Calling this method defines a region for detecting pointer movement with the size and position of this view.