#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include() // // UIHoverGestureRecognizer.h // UIKit // // Copyright © 2018 Apple Inc. All rights reserved. // #import #import // UIHoverGestureRecognizer // On macOS or iPadOS, this gesture recognizer will begin recognition when the cursor // (while no mouse buttons are pressed) enters its view, changes during movement // within the view and ends when the cursor leaves said view. // Note: While buttons are pressed any currently active hover gesture recognizers // are effectively paused (letting other gesture recognizers work) until all // mouse buttons have been released. // // On iOS, this gesture recognizer doesn't recognize anything and is effectively // a no-op. UIKIT_EXTERN API_AVAILABLE(ios(13.0)) API_UNAVAILABLE(watchos, tvos) @interface UIHoverGestureRecognizer : UIGestureRecognizer /// The normalized distance from the screen of the hovering device. This value will be 1 at the maximum distance /// from the screen and will approach 0 as the device gets closer to the screen. Will always return 0 for devices that /// don't support z offset. @property (nonatomic, readonly) CGFloat zOffset API_AVAILABLE(ios(16.1)) API_UNAVAILABLE(watchos, tvos); /// The azimuth angle of the current device in the specified view, or the gesture recognizer's window if nil. 0 is /// returned for devices that don't support azimuth. - (CGFloat)azimuthAngleInView:(nullable UIView *)view API_AVAILABLE(ios(16.4)) API_UNAVAILABLE(watchos, tvos); /// The azimuth unit vector of the current device in the specified view, or the gesture recognizer's window if nil. /// An empty vector is returned for devices that don't support azimuth. - (CGVector)azimuthUnitVectorInView:(nullable UIView *)view API_AVAILABLE(ios(16.4)) API_UNAVAILABLE(watchos, tvos); /// The altitude angle of the current device. 0 is returned for devices that don't support altitude. @property (nonatomic, readonly) CGFloat altitudeAngle API_AVAILABLE(ios(16.4)) API_UNAVAILABLE(watchos, tvos); @end #else #import #endif