Skip to content

UIKit iOS xcode14.0 beta2

Manuel de la Pena edited this page Aug 18, 2022 · 5 revisions

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

diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h	2022-06-03 18:09:58.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h	2022-06-17 14:51:48.000000000 -0400
@@ -61,6 +61,15 @@
     UIButtonConfigurationMacIdiomStyleBorderlessTinted,
 } API_AVAILABLE(ios(15.0));
 
+typedef NS_ENUM(NSInteger, UIButtonConfigurationIndicator) {
+    /// Automatically determine an indicator based on the button's properties.
+    UIButtonConfigurationIndicatorAutomatic,
+    /// Don't show any indicator
+    UIButtonConfigurationIndicatorNone,
+    /// Show an indicator appropriate for a popup-style button
+    UIButtonConfigurationIndicatorPopup,
+} API_AVAILABLE(ios(16.0));
+
 UIKIT_EXTERN API_AVAILABLE(ios(15.0), tvos(15.0), watchos(8.0)) NS_SWIFT_UI_ACTOR
 @interface UIButtonConfiguration : NSObject <NSCopying, NSSecureCoding>
 
@@ -114,6 +123,10 @@
 @property (nonatomic, readwrite, copy, nullable) NSAttributedString *attributedSubtitle;
 @property (nonatomic, readwrite, copy, nullable) UIConfigurationTextAttributesTransformer subtitleTextAttributesTransformer;
 
+/// What kind of indicator should the button show. Default value is .automatic.
+@property (nonatomic, readwrite, assign) UIButtonConfigurationIndicator indicator API_AVAILABLE(ios(16.0));
+@property (nonatomic, readwrite, copy, nullable) UIConfigurationColorTransformer indicatorColorTransformer API_AVAILABLE(ios(16.0));
+
 /// Insets from the bounds of the button to create the content region. Defaults styles provide insets based on the button size.
 @property (nonatomic, readwrite, assign) NSDirectionalEdgeInsets contentInsets;
 /// Restore the default content insets.
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h	2022-05-31 14:52:42.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIDocumentBrowserViewController.h	2022-06-17 15:29:39.000000000 -0400
@@ -102,7 +102,7 @@
 #pragma mark Document Renaming
 
 /// Rename a document.
-/// If the proposed name is already taken, a different name may be used.
+/// If the proposed name is already taken, a different name may be used after confirming with the user.
 /// The finalURL and error are available in the completion handler.
 - (void)renameDocumentAtURL:(NSURL *)documentURL proposedName:(NSString *)proposedName completionHandler:(void(^)(NSURL *_Nullable finalURL, NSError *_Nullable error))completionHandler API_AVAILABLE(ios(16.0));
 
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes	2022-05-28 00:58:39.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes	2022-06-17 02:17:44.000000000 -0400
@@ -161,21 +161,27 @@
     SwiftName: estimated(_:)
 - Name: NSCollectionLayoutGroup
   Methods:
-  - Selector: "horizontalGroupWithLayoutSize:subitem:count:"
+  - Selector: "horizontalGroupWithLayoutSize:repeatingSubitem:count:"
     MethodKind: Class
-    SwiftName: horizontal(layoutSize:subitem:count:)
+    SwiftName: horizontal(layoutSize:repeatingSubitem:count:)
   - Selector: "horizontalGroupWithLayoutSize:subitems:"
     MethodKind: Class
     SwiftName: horizontal(layoutSize:subitems:)
-  - Selector: "verticalGroupWithLayoutSize:subitem:count:"
+  - Selector: "verticalGroupWithLayoutSize:repeatingSubitem:count:"
     MethodKind: Class
-    SwiftName: vertical(layoutSize:subitem:count:)
+    SwiftName: vertical(layoutSize:repeatingSubitem:count:)
   - Selector: "verticalGroupWithLayoutSize:subitems:"
     MethodKind: Class
     SwiftName: vertical(layoutSize:subitems:)
   - Selector: "customGroupWithLayoutSize:itemProvider:"
     MethodKind: Class
     SwiftName: custom(layoutSize:itemProvider:)
+  - Selector: "horizontalGroupWithLayoutSize:subitem:count:" #deprecated
+    MethodKind: Class
+    SwiftName: horizontal(layoutSize:subitem:count:)
+  - Selector: "verticalGroupWithLayoutSize:subitem:count:" #deprecated
+    MethodKind: Class
+    SwiftName: vertical(layoutSize:subitem:count:)
 - Name: NSCollectionLayoutSection
   Methods:
   - Selector: "sectionWithGroup:"
@@ -993,10 +999,20 @@
   SwiftName: UIWindowScene.ActivationInteraction
 - Name: UIWindowSceneGeometry
   SwiftName: UIWindowScene.Geometry
+- Name: UIWindowSceneGeometryPreferencesIOS
+  SwiftName: UIWindowSceneGeometryPreferences.iOS
+  Methods:
+    - Selector: 'preferencesWithInterfaceOrientations:'
+      MethodKind: Class
+      SwiftPrivate: true
+- Name: UIWindowSceneGeometryPreferencesMac
+  SwiftName: UIWindowSceneGeometryPreferences.Mac
+  Methods:
+    - Selector: 'preferencesSystemFrame:'
+      MethodKind: Class
+      SwiftPrivate: true
 - Name: UIWindowSceneGeometryPreferences
   SwiftName: UIWindowScene.GeometryPreferences
-- Name: UIWindowSceneMacGeometryPreferences
-  SwiftName: UIWindowScene.MacGeometryPreferences
 - Name: UISheetPresentationControllerDetent
   SwiftName: UISheetPresentationController.Detent
   Methods:
@@ -1486,6 +1502,8 @@
   SwiftPrivate: true
 - Name: UIButtonConfigurationMacIdiomStyle
   SwiftPrivate: true
+- Name: UIButtonConfigurationIndicator
+  SwiftPrivate: true
 - Name: UIDatePickerMode
   SwiftName: UIDatePicker.Mode
 - Name: UISwitchStyle
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h	2022-05-26 01:01:28.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h	2022-06-17 02:12:43.000000000 -0400
@@ -283,7 +283,8 @@
 #import <UIKit/UISceneActivationConditions.h>
 #import <UIKit/UIWindowSceneGeometry.h>
 #import <UIKit/UIWindowSceneGeometryPreferences.h>
-#import <UIKit/UIWindowSceneMacGeometryPreferences.h>
+#import <UIKit/UIWindowSceneGeometryPreferencesMac.h>
+#import <UIKit/UIWindowSceneGeometryPreferencesIOS.h>
 #import <UIKit/UIOpenURLContext.h>
 #import <UIKit/UIStatusBarManager.h>
 #import <UIKit/UIScreenshotService.h>
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h	2022-05-31 14:52:54.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h	2022-06-17 15:29:50.000000000 -0400
@@ -8,6 +8,7 @@
 
 #import <CoreGraphics/CoreGraphics.h>
 #import <Foundation/Foundation.h>
+#import <UIKit/UIButtonConfiguration.h>
 #import <UIKit/UIControl.h>
 
 NS_HEADER_AUDIT_BEGIN(nullability, sendability)
@@ -21,20 +22,13 @@
     UIPasteControlDisplayModeLabelOnly
 } API_AVAILABLE(ios(16.0)) NS_SWIFT_NAME(UIPasteControl.DisplayMode);
 
-typedef NS_ENUM(NSInteger, UIPasteControlCornerStyle) {
-    UIPasteControlCornerStyleNone,
-    UIPasteControlCornerStyleSmall,
-    UIPasteControlCornerStyleMedium,
-    UIPasteControlCornerStyleLarge,
-    UIPasteControlCornerStyleCapsule
-} API_AVAILABLE(ios(16.0)) NS_SWIFT_NAME(UIPasteControl.CornerStyle);
-
 UIKIT_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_NAME(UIPasteControl.Configuration) NS_SWIFT_UI_ACTOR
 @interface UIPasteControlConfiguration : NSObject <NSSecureCoding>
-@property (nonatomic) UIPasteControlDisplayMode displayMode;
-@property (nonatomic) UIPasteControlCornerStyle cornerStyle;
-@property (nonatomic, nullable) UIColor *baseForegroundColor;
-@property (nonatomic, nullable) UIColor *baseBackgroundColor;
+@property (nonatomic, assign) UIPasteControlDisplayMode displayMode;
+@property (nonatomic, assign) UIButtonConfigurationCornerStyle cornerStyle NS_REFINED_FOR_SWIFT;
+@property (nonatomic, assign) CGFloat cornerRadius;
+@property (nonatomic, nullable, strong) UIColor *baseForegroundColor;
+@property (nonatomic, nullable, strong) UIColor *baseBackgroundColor;
 @end
 
 UIKIT_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(tvos, watchos) NS_SWIFT_UI_ACTOR
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h	2022-05-31 14:52:43.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h	2022-06-17 14:51:40.000000000 -0400
@@ -113,6 +113,12 @@
 /// after dismissing the menu by tapping outside
 @property (nonatomic, copy, nullable) NSArray<id<UISearchSuggestion>> *searchSuggestions API_AVAILABLE(tvos(14.0), ios(16.0)) API_UNAVAILABLE(watchos);
 
+/// Default NO. When YES, the UISearchController will not create its internal child view controller
+/// for presenting the list of search suggestions when the searchBarPlacement is stacked.
+/// This property is intended to be set at the time that the search controller is initialized.
+/// If set after that point, the internal view controller will not be destroyed, but its view will be hidden and remain so.
+@property (nonatomic) BOOL ignoresSearchSuggestionsForSearchBarPlacementStacked API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(tvos, watchos);
+
 /* Deprecated on tvOS 15.0 in favor of  using -[UIViewController setContentScrollView:forEdge:]
  on the searchResultsController, passing the full-screen scroll view contained in the results view
  and NSDirectionalRectEdgeTop.
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h	2022-06-03 18:07:42.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h	2022-06-17 14:51:49.000000000 -0400
@@ -89,9 +89,8 @@
 /// @param range    The range of text to decorate.
 /// @param document If multiple documents are used, the relevant document identifier is provided here.
 ///                 Otherwise nil.
-/// @param style    The style used to decorate the text. The visual appearance for a given style is up
-///                 to the developer, but default text attributes are provided via the NSTextAttribute
-///                 category method @c +systemTextSearchTextAttributesForStyle.
+/// @param style    A style hint for how to decorate the text. This is ultimately up to the developer, but developers are
+///               encouraged to match the system's appearance (i.e., UITextView) as close as possible. 
 - (void)decorateFoundTextRange:(UITextRange *)range
                     inDocument:(nullable UITextSearchDocumentIdentifier)document
                     usingStyle:(UITextSearchFoundTextStyle)style;
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h	2022-05-31 14:50:26.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h	2022-06-17 15:27:34.000000000 -0400
@@ -316,19 +316,21 @@
 // To make it more convenient for applications to adopt rotation, a view controller may implement the below methods. Your UIWindow's frame should use [UIScreen mainScreen].bounds as its frame.
 @interface UIViewController (UIViewControllerRotation)
 
-// call this method when your return value from shouldAutorotateToInterfaceOrientation: changes
-// if the current interface orientation does not match the current device orientation, a rotation may occur provided all relevant view controllers now return YES from shouldAutorotateToInterfaceOrientation:
-+ (void)attemptRotationToDeviceOrientation API_AVAILABLE(ios(5.0)) API_UNAVAILABLE(tvos);
++ (void)attemptRotationToDeviceOrientation API_DEPRECATED("Please use instance method `setNeedsUpdateOfSupportedInterfaceOrientations`.", ios(5.0, 16.0)) API_UNAVAILABLE(tvos);
 
 // Applications should use supportedInterfaceOrientations and/or shouldAutorotate.
 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation API_DEPRECATED("", ios(2.0, 6.0)) API_UNAVAILABLE(tvos);
 
 // New Autorotation support.
-@property(nonatomic, readonly) BOOL shouldAutorotate API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(tvos);
+@property(nonatomic, readonly) BOOL shouldAutorotate API_DEPRECATED("Update supported interface orientations and call setNeedsUpdateOfSupportedInterfaceOrientations to indicate a change.", ios(6.0, 16.0)) API_UNAVAILABLE(tvos);
 @property(nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(tvos);
 // Returns interface orientation masks.
 @property(nonatomic, readonly) UIInterfaceOrientation preferredInterfaceOrientationForPresentation API_AVAILABLE(ios(6.0)) API_UNAVAILABLE(tvos);
 
+/// Notifies the view controller that a change occurred that affects supported interface orientations or the preferred interface orientation for presentation.
+/// By default, this will animate any changes to orientation. To perform a non-animated update, call within `[UIView performWithoutAnimation:]`.
+- (void)setNeedsUpdateOfSupportedInterfaceOrientations API_AVAILABLE(ios(16.0));
+
 // The rotating header and footer views will slide out during the rotation and back in once it has completed.
 - (nullable UIView *)rotatingHeaderView API_DEPRECATED("Header views are animated along with the rest of the view hierarchy", ios(2.0, 8.0)) API_UNAVAILABLE(tvos);     // Must be in the view hierarchy. Default returns nil.
 - (nullable UIView *)rotatingFooterView API_DEPRECATED("Footer views are animated along with the rest of the view hierarchy", ios(2.0, 8.0)) API_UNAVAILABLE(tvos);     // Must be in the view hierarchy. Default returns nil.
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometry.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometry.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometry.h	2022-05-31 14:52:52.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometry.h	2022-06-17 15:29:48.000000000 -0400
@@ -8,6 +8,7 @@
 #import <Foundation/Foundation.h>
 #import <CoreGraphics/CGGeometry.h>
 #import <UIKit/UIKitDefines.h>
+#import <UIKit/UIApplication.h>
 
 NS_HEADER_AUDIT_BEGIN(nullability, sendability)
 
@@ -19,6 +20,7 @@
 + (instancetype)new NS_UNAVAILABLE;
 
 @property (nonatomic, readonly) CGRect systemFrame API_AVAILABLE(macCatalyst(16.0)) API_UNAVAILABLE(ios, watchos, tvos);
+@property (nonatomic, readonly) UIInterfaceOrientation interfaceOrientation API_UNAVAILABLE(tvos);
 
 @end
 
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesIOS.h	2022-06-17 15:29:40.000000000 -0400
@@ -0,0 +1,31 @@
+#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIKitCore/UIWindowSceneGeometryPreferencesIOS.h>)
+//
+//  UIWindowSceneGeometryPreferencesIOS.h
+//  UIKit
+//
+//  Copyright © 2022 Apple Inc. All rights reserved.
+//
+
+#import <UIKit/UIWindowSceneGeometryPreferences.h>
+#import <UIKit/UIApplication.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+
+/// Use this class to express iOS-specific geometry preferences when calling `-[UIWindowScene requestGeometryUpdateWithPreferences:errorHandler:]`
+UIKIT_EXTERN API_AVAILABLE(ios(16.0))
+@interface UIWindowSceneGeometryPreferencesIOS : UIWindowSceneGeometryPreferences
+
+- (instancetype)init NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithInterfaceOrientations:(UIInterfaceOrientationMask)interfaceOrientations;
+
+/// The preferred interface orientations. The system will choose the best orientation from the intersection of these
+/// orientations and the current supported orientations. Defaults to an empty mask to indicate no preference.
+@property (nonatomic, assign) UIInterfaceOrientationMask interfaceOrientations NS_REFINED_FOR_SWIFT;
+
+@end
+
+NS_HEADER_AUDIT_END(nullability, sendability)
+
+#else
+#import <UIKitCore/UIWindowSceneGeometryPreferencesIOS.h>
+#endif
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesMac.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesMac.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesMac.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneGeometryPreferencesMac.h	2022-06-17 15:29:48.000000000 -0400
@@ -0,0 +1,31 @@
+#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIKitCore/UIWindowSceneGeometryPreferencesMac.h>)
+//
+//  UIWindowSceneGeometryPreferencesMac.h
+//  UIKit
+//
+//  Copyright © 2022 Apple Inc. All rights reserved.
+//
+
+#import <CoreGraphics/CGGeometry.h>
+#import <UIKit/UIWindowSceneGeometryPreferences.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+
+/// Use this class to express macOS-specific geometry preferences when calling `-[UIWindowScene requestGeometryUpdateWithPreferences:errorHandler:]`
+UIKIT_EXTERN API_AVAILABLE(macCatalyst(16.0))
+@interface UIWindowSceneGeometryPreferencesMac : UIWindowSceneGeometryPreferences
+
+- (instancetype)init NS_DESIGNATED_INITIALIZER;
+- (instancetype)initWithSystemFrame:(CGRect)systemFrame;
+
+/// The preferred system frame in the system scale where an origin of (0, 0) corresponds to the top-left
+/// corner of the main display. Defaults to CGRectNull to indicate no preference.
+@property (nonatomic, assign) CGRect systemFrame NS_REFINED_FOR_SWIFT; 
+
+@end
+
+NS_HEADER_AUDIT_END(nullability, sendability)
+
+#else
+#import <UIKitCore/UIWindowSceneGeometryPreferencesMac.h>
+#endif
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneMacGeometryPreferences.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneMacGeometryPreferences.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneMacGeometryPreferences.h	2022-05-31 14:52:49.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIWindowSceneMacGeometryPreferences.h	1969-12-31 19:00:00.000000000 -0500
@@ -1,27 +0,0 @@
-#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIKitCore/UIWindowSceneMacGeometryPreferences.h>)
-//
-//  UIWindowSceneMacGeometryPreferences.h
-//  UIKit
-//
-//  Copyright © 2022 Apple Inc. All rights reserved.
-//
-
-#import <CoreGraphics/CGGeometry.h>
-#import <UIKit/UIWindowSceneGeometryPreferences.h>
-
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
-
-UIKIT_EXTERN API_AVAILABLE(macCatalyst(16.0))
-@interface UIWindowSceneMacGeometryPreferences : UIWindowSceneGeometryPreferences
-
-- (instancetype)initWithSystemFrame:(CGRect)systemFrame NS_DESIGNATED_INITIALIZER;
-
-@property (nonatomic, assign) CGRect systemFrame;
-
-@end
-
-NS_HEADER_AUDIT_END(nullability, sendability)
-
-#else
-#import <UIKitCore/UIWindowSceneMacGeometryPreferences.h>
-#endif
Clone this wiki locally