Event Handling
Respond to mouse, keyboard, touch, and tablet events and gestures that originate inside your view.
Topics
Handling Events in the View
acceptsFirstMouse(for:)hitTest(_:)isMousePoint(_:in:)performKeyEquivalent(with:)rightMouseDown(with:)mouseDownCanMoveWindowinputContext
Handling Touch Events
Managing Gesture Recognizers
Managing the Key-View Loop
Handling Smart Magnification
Managing Tracking Areas
addTrackingArea(_:)removeTrackingArea(_:)trackingAreasupdateTrackingAreas()didUpdateTrackingAreasNotification
Managing Tracking Rectangles
Scrolling the View
prepareContent(in:)preparedContentRectscroll(_:)scrollToVisible(_:)autoscroll(with:)adjustScroll(_:)enclosingScrollViewscroll(_:to:)reflectScrolledClipView(_:)isCompatibleWithResponsiveScrolling