Skip to content

UIKit tvOS 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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes	2022-06-15 23:36: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:"
@@ -1486,6 +1492,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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h	2022-06-03 18:07:45.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIPasteControl.h	2022-06-17 14:49:38.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISearchController.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextSearching.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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/AppleTVOS.platform/Developer/SDKs/AppleTVOS.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;
Clone this wiki locally