Skip to content

UIKit iOS xcode15.0 b6

Manuel de la Pena edited this page Oct 20, 2023 · 3 revisions

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

diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h	2023-07-20 00:37:01
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UICloudSharingController.h	2023-08-04 01:02:02
@@ -56,7 +56,7 @@
  After ensuring the share and record have been saved to the server, invoke the preparationCompletionHandler
  with either the resulting CKShare, or an NSError if saving failed.
  */
-- (instancetype)initWithPreparationHandler:(void (^)(UICloudSharingController *controller, void (^preparationCompletionHandler)(CKShare * _Nullable, CKContainer * _Nullable, NSError * _Nullable)))preparationHandler;
+- (instancetype)initWithPreparationHandler:(void (^)(UICloudSharingController *controller, void (^preparationCompletionHandler)(CKShare * _Nullable, CKContainer * _Nullable, NSError * _Nullable)))preparationHandler API_DEPRECATED("Use -[UIActivityViewController initWithActivityItemsConfiguration:] and pass it a UIActivityItemsConfigurationReading-conforming object with an NSItemProvider and registered preparation handler", ios(10.0, 17.0));
 
 /* Use this initializer when you already have an active CKShare that was set up previously.
  */
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h	2023-07-19 06:05:16
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h	2023-08-01 10:19:20
@@ -26,8 +26,10 @@
     UIUserInterfaceIdiomTV API_AVAILABLE(ios(9.0)), // Apple TV style UI
     UIUserInterfaceIdiomCarPlay API_AVAILABLE(ios(9.0)), // CarPlay style UI
     UIUserInterfaceIdiomMac API_AVAILABLE(ios(14.0)) = 5, // Optimized for Mac UI
-    UIUserInterfaceIdiomReality API_AVAILABLE(ios(17.0)) = 6, // Reality UI
+    UIUserInterfaceIdiomVision API_AVAILABLE(ios(17.0)) = 6, // Vision UI
 };
+
+
 
 UIKIT_EXTERN API_AVAILABLE(ios(2.0)) NS_SWIFT_UI_ACTOR
 @interface UIDevice : NSObject
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h	2023-07-19 01:57:13
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h	2023-07-30 14:23:40
@@ -58,8 +58,8 @@
 @property(nonatomic) BOOL delaysTouchesBegan;         // default is NO.  causes all touch or press events to be delivered to the target view only after this gesture has failed recognition. set to YES to prevent views from processing any touches or presses that may be recognized as part of this gesture
 @property(nonatomic) BOOL delaysTouchesEnded;         // default is YES. causes touchesEnded or pressesEnded events to be delivered to the target view only after this gesture has failed recognition. this ensures that a touch or press that is part of the gesture can be cancelled if the gesture is recognized
 
-@property(nonatomic, copy) NSArray<NSNumber *> *allowedTouchTypes API_AVAILABLE(ios(9.0)); // Array of UITouchTypes as NSNumbers.
-@property(nonatomic, copy) NSArray<NSNumber *> *allowedPressTypes API_AVAILABLE(ios(9.0)); // Array of UIPressTypes as NSNumbers.
+@property(nonatomic, copy) NSArray<NSNumber *> *allowedTouchTypes API_AVAILABLE(ios(9.0)); // Array of UITouchTypes as NSNumbers. The default value is platform dependent.
+@property(nonatomic, copy) NSArray<NSNumber *> *allowedPressTypes API_AVAILABLE(ios(9.0)); // Array of UIPressTypes as NSNumbers. The default value is platform dependent.
 
 // Indicates whether the gesture recognizer will consider touches of different touch types simultaneously.
 // If NO, it receives all touches that match its allowedTouchTypes.
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes	2023-07-19 23:50:01
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes	2023-08-04 01:18:10
@@ -1264,6 +1264,8 @@
       SwiftPrivate: true
 - Name: UIWindowSceneGeometryPreferencesReality
   SwiftName: UIWindowSceneGeometryPreferences.Reality
+- Name: UIWindowSceneGeometryPreferencesVision
+  SwiftName: UIWindowSceneGeometryPreferences.Vision
 - Name: UIWindowSceneGeometryPreferences
   SwiftName: UIWindowScene.GeometryPreferences
 - Name: UIWindowScenePlacement
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h	2023-07-20 00:38:16
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h	2023-08-04 01:01:49
@@ -305,6 +305,7 @@
 #import <UIKit/UIWindowSceneGeometryPreferencesMac.h>
 #import <UIKit/UIWindowSceneGeometryPreferencesIOS.h>
 #import <UIKit/UIWindowSceneGeometryPreferencesReality.h>
+#import <UIKit/UIWindowSceneGeometryPreferencesVision.h>
 #import <UIKit/UIWindowScenePlacement.h>
 #import <UIKit/UIWindowSceneStandardPlacement.h>
 #import <UIKit/UIWindowSceneProminentPlacement.h>
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h	2023-07-19 01:51:23
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h	2023-08-04 01:02:08
@@ -31,6 +31,9 @@
     UIMenuElementSizeSmall = 0,
     UIMenuElementSizeMedium,
     UIMenuElementSizeLarge,
+
+    /// Automatically determine the appropriate element size for the current context.
+    UIMenuElementSizeAutomatic API_AVAILABLE(ios(17.0)) = -1,
 } API_AVAILABLE(ios(16.0));
 
 NS_HEADER_AUDIT_BEGIN(nullability, sendability)
@@ -215,8 +218,6 @@
 
 /// AutoFill menu
 UIKIT_EXTERN const UIMenuIdentifier UIMenuAutoFill API_AVAILABLE(ios(17.0));
-
-UIKIT_EXTERN const UIMenuIdentifier UIMenuInsert API_DEPRECATED_WITH_REPLACEMENT("UIMenuAutoFill", ios(17.0, 17.0));
 
 /// Font menu contained within Format menu (contains UIMenuTextStyle)
 UIKIT_EXTERN const UIMenuIdentifier UIMenuFont API_AVAILABLE(ios(13.0));
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h	2023-07-19 06:05:19
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h	2023-07-30 14:23:46
@@ -55,19 +55,19 @@
 - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController API_AVAILABLE(ios(3.0));
 - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController;
 
-- (void)tabBarController:(UITabBarController *)tabBarController willBeginCustomizingViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos);
-- (void)tabBarController:(UITabBarController *)tabBarController willEndCustomizingViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers changed:(BOOL)changed API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(tvos);
+- (void)tabBarController:(UITabBarController *)tabBarController willBeginCustomizingViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
+- (void)tabBarController:(UITabBarController *)tabBarController willEndCustomizingViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers changed:(BOOL)changed API_AVAILABLE(ios(3.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
 - (void)tabBarController:(UITabBarController *)tabBarController didEndCustomizingViewControllers:(NSArray<__kindof UIViewController *> *)viewControllers changed:(BOOL)changed API_UNAVAILABLE(tvos);
 
-- (UIInterfaceOrientationMask)tabBarControllerSupportedInterfaceOrientations:(UITabBarController *)tabBarController API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(tvos);
-- (UIInterfaceOrientation)tabBarControllerPreferredInterfaceOrientationForPresentation:(UITabBarController *)tabBarController API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(tvos);
+- (UIInterfaceOrientationMask)tabBarControllerSupportedInterfaceOrientations:(UITabBarController *)tabBarController API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
+- (UIInterfaceOrientation)tabBarControllerPreferredInterfaceOrientationForPresentation:(UITabBarController *)tabBarController API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos);
 
 - (nullable id <UIViewControllerInteractiveTransitioning>)tabBarController:(UITabBarController *)tabBarController
-                      interactionControllerForAnimationController: (id <UIViewControllerAnimatedTransitioning>)animationController API_AVAILABLE(ios(7.0));
+                      interactionControllerForAnimationController: (id <UIViewControllerAnimatedTransitioning>)animationController API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(visionos);
 
 - (nullable id <UIViewControllerAnimatedTransitioning>)tabBarController:(UITabBarController *)tabBarController
             animationControllerForTransitionFromViewController:(UIViewController *)fromVC
-                                              toViewController:(UIViewController *)toVC  API_AVAILABLE(ios(7.0));
+                                              toViewController:(UIViewController *)toVC  API_AVAILABLE(ios(7.0)) API_UNAVAILABLE(visionos);
 
 @end
 
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesReality.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesReality.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesReality.h	2023-07-20 00:37:00
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesReality.h	2023-08-04 01:02:02
@@ -6,15 +6,12 @@
 //  Copyright © 2023 Apple Inc. All rights reserved.
 //
 
-#import <UIKit/UIWindowSceneGeometryPreferences.h>
+#import <UIKit/UIWindowSceneGeometryPreferencesVision.h>
 #import <UIKit/UIWindowSceneGeometry.h>
 
 NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
-/// Used as the value for a dimension of a size related preference when wanting to leave it unchanged.
-UIKIT_EXTERN const CGFloat UIProposedSceneSizeNoPreference API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, tvos, macos, watchos);
-
-UIKIT_EXTERN API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, tvos, macos, watchos)
+UIKIT_EXTERN API_DEPRECATED_WITH_REPLACEMENT("UIWindowSceneGeometryPreferencesVision", visionos(1.0, 1.0)) API_UNAVAILABLE(ios, tvos, macos, watchos)
 @interface UIWindowSceneGeometryPreferencesReality : UIWindowSceneGeometryPreferences
 
 - (instancetype)init NS_REFINED_FOR_SWIFT;
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesVision.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesVision.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesVision.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesVision.h	2023-08-04 01:02:04
@@ -0,0 +1,49 @@
+#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIKitCore/UIWindowSceneGeometryPreferencesVision.h>)
+//
+//  UIWindowSceneGeometryPreferencesVision.h
+//  UIKit
+//
+//  Copyright © 2023 Apple Inc. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+#import <UIKit/UIWindowSceneGeometryPreferences.h>
+#import <UIKit/UIWindowSceneGeometry.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+
+/// Used as the value for a dimension of a size related preference when wanting to leave it unchanged.
+UIKIT_EXTERN const CGFloat UIProposedSceneSizeNoPreference API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, tvos, macos, watchos);
+
+UIKIT_EXTERN API_AVAILABLE(visionos(1.0)) API_UNAVAILABLE(ios, tvos, macos, watchos)
+@interface UIWindowSceneGeometryPreferencesVision : UIWindowSceneGeometryPreferences
+
+/// Creates a geometry preference with no changes. Update the properties who's preference should change
+- (instancetype)init NS_REFINED_FOR_SWIFT;
+
+/// Creates a geometry preference with a specific size (specifying UIProposedSceneSizeNoPreference for any dimension of size, will specify no preference, keeping that dimension the same if possible)
+- (instancetype)initWithSize:(CGSize)size NS_REFINED_FOR_SWIFT;
+
+/// The preferred system size. Use UIProposedSceneSizeNoPreference to use existing value
+@property (nonatomic, assign) CGSize size NS_REFINED_FOR_SWIFT;
+
+/// The preferred minimum size of the scene. Use `UIProposedSceneSizeNoPreference` on a dimension of the size to indicate that axis should be returned to the system default.
+/// By default, the value is left unchanged
+@property (nonatomic, assign) CGSize minimumSize NS_REFINED_FOR_SWIFT;
+
+/// The preferred maximum size of the scene. Use `UIProposedSceneSizeNoPreference` on a dimension of the size to indicate that axis should be returned to the system default.
+/// By default, the value is left unchanged
+@property (nonatomic, assign) CGSize maximumSize NS_REFINED_FOR_SWIFT;
+
+/// The user resizable restrictions on the window scene
+/// By default, the value is left unchanged
+@property (nonatomic, assign) UIWindowSceneResizingRestrictions resizingRestrictions NS_REFINED_FOR_SWIFT;
+@end
+
+NS_HEADER_AUDIT_END(nullability, sendability)
+
+
+#else
+#import <UIKitCore/UIWindowSceneGeometryPreferencesVision.h>
+#endif
Clone this wiki locally