Skip to content

UIKit tvOS xcode14.1 rc

Manuel de la Pena edited this page Oct 21, 2022 · 3 revisions

#UIKit.framework https://github.com/xamarin/xamarin-macios/pull/16411

diff -ruN /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h /Applications/Xcode_14.1.0-rc.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h
--- /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h	2022-09-21 16:19:19.000000000 -0400
+++ /Applications/Xcode_14.1.0-rc.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h	2022-10-06 13:21:43.000000000 -0400
@@ -20,6 +20,12 @@
 // 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);
+
 @end
 
 #else
diff -ruN /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h /Applications/Xcode_14.1.0-rc.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h
--- /Applications/Xcode_14.1.0-beta3.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h	2022-09-22 10:20:43.000000000 -0400
+++ /Applications/Xcode_14.1.0-rc.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h	2022-10-06 13:21:47.000000000 -0400
@@ -122,9 +122,9 @@
 // resigns key in the application.
 UIKIT_EXTERN NSNotificationName const UIWindowDidResignKeyNotification;
 
-// Each notification includes a nil object and a userInfo dictionary containing the
-// beginning and ending keyboard frame in screen coordinates. Use the various UIView and
-// UIWindow convertRect facilities to get the frame in the desired coordinate system.
+// The notification object is the UIScreen that contains the keyboard. Each notification includes 
+// a userInfo dictionary containing the beginning and ending keyboard frame in screen coordinates.
+// Use the various UICoordinateSpace convertRect facilities to get the frame in the desired coordinate system.
 // Animation key/value pairs are only available for the "will" family of notification.
 UIKIT_EXTERN NSNotificationName const UIKeyboardWillShowNotification API_UNAVAILABLE(tvos);
 UIKIT_EXTERN NSNotificationName const UIKeyboardDidShowNotification API_UNAVAILABLE(tvos);
Clone this wiki locally