Skip to content

UIKit tvOS xcode16.0 b6

Rolf Bjarne Kvinge edited this page Aug 28, 2024 · 2 revisions

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

diff -ruN /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h
--- /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h	2024-07-27 15:22:20
+++ /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKitCore.h	2024-08-09 07:52:38
@@ -302,6 +302,7 @@
 #import <UIKit/UISceneOptions.h>
 #import <UIKit/UIScene.h>
 #import <UIKit/UIScene+AVAudioSession.h>
+#import <UIKit/UISceneSystemProtectionManager.h>
 #import <UIKit/UIWindowScene.h>
 #import <UIKit/UISceneSession.h>
 #import <UIKit/UISceneSessionActivationRequest.h>
diff -ruN /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h
--- /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h	1970-01-01 01:00:00
+++ /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UISceneSystemProtectionManager.h	2024-08-13 00:00:27
@@ -0,0 +1,42 @@
+#if (defined(USE_UIKIT_PUBLIC_HEADERS) && USE_UIKIT_PUBLIC_HEADERS) || !__has_include(<UIKitCore/UISceneSystemProtectionManager.h>)
+//
+//  UISceneSystemProtectionManager.h
+//  UIKit
+//
+//  Copyright © 2024 Apple Inc. All rights reserved.
+//
+
+#import <UIKit/UIScene.h>
+
+NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+
+/// A notification posted when the system protection attributes of a scene change. The object of
+/// the notification is the scene whose protection attributes changed.
+UIKIT_EXTERN NSNotificationName const UISceneSystemProtectionDidChangeNotification API_AVAILABLE(ios(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_NONISOLATED NS_SWIFT_NAME(UIScene.systemProtectionDidChangeNotification);
+
+UIKIT_EXTERN API_AVAILABLE(ios(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos, tvos) NS_SWIFT_UI_ACTOR NS_SWIFT_NAME(UIScene.SystemProtectionManager)
+@interface UISceneSystemProtectionManager : NSObject
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+
+/// \c YES if the system requires requires device owner authentication challenges to reveal the
+/// content of the scene associated with this manager, else \c NO . Note in particular that this
+/// is \em not the instantaneous state of whether any system-provided shield is covering the UI at
+/// the moment, but whether protection is enabled in general.
+@property (getter=isUserAuthenticationEnabled, readonly) BOOL userAuthenticationEnabled;
+
+@end
+
+UIKIT_EXTERN API_AVAILABLE(ios(18.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(watchos, tvos)
+@interface UIScene (SystemProtection)
+
+@property (nonatomic, readonly, nullable) UISceneSystemProtectionManager *systemProtectionManager;
+
+@end
+
+NS_HEADER_AUDIT_END(nullability, sendability)
+
+#else
+#import <UIKitCore/UISceneSystemProtectionManager.h>
+#endif
diff -ruN /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h
--- /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h	2024-07-29 06:04:47
+++ /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITabBarController.h	2024-08-13 06:19:05
@@ -110,7 +110,7 @@
 - (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectTab:(UITab *)tab NS_SWIFT_NAME(tabBarController(_:shouldSelectTab:)) API_AVAILABLE(ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
 
 /// Called when the selected tab has changed in the tab bar controller. The specified selected `tab` is either a root tab or its decendants.
-- (void)tabBarController:(UITabBarController *)tabBarController didSelectTab:(UITab *)tab previousTab:(nullable UITab *)tab NS_SWIFT_NAME(tabBarController(_:didSelectTab:previousTab:)) API_AVAILABLE(ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
+- (void)tabBarController:(UITabBarController *)tabBarController didSelectTab:(UITab *)selectedTab previousTab:(nullable UITab *)previousTab NS_SWIFT_NAME(tabBarController(_:didSelectTab:previousTab:)) API_AVAILABLE(ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos);
 
 /// Determines if items from the specified drop session can be dropped into the specified `tab`. If the operation is either a `.move` or `.copy`,
 /// then the drop will proceed and `tabBarController:tab:acceptItemsFromDropSession:` is called. By default, the drop will be
diff -ruN /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h
--- /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h	2024-08-02 06:41:58
+++ /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h	2024-08-13 06:18:58
@@ -189,28 +189,6 @@
 } API_AVAILABLE(ios(18.0), macos(15.0)) API_UNAVAILABLE(tvos, watchos, visionos);
 
 //
-// UIWritingToolsAllowedInputOptions
-//
-// Controls the configuration of the available Writing Tools UI
-//
-typedef NS_OPTIONS(NSUInteger, UIWritingToolsAllowedInputOptions) {
-    /// System-defined behavior
-    UIWritingToolsAllowedInputOptionsDefault = 0,
-    
-    /// Writing Tools will provide plain text in proofreading suggestions or rewrites
-    UIWritingToolsAllowedInputOptionsPlainText = 1 << 0,
-    
-    /// As well as plain text, Writing Tools will provide text attributes in proofreading suggestions or rewrites that are natively supported or known to be easily adopted (such as lists)
-    UIWritingToolsAllowedInputOptionsRichText = 1 << 1,
-    
-    /// implies `RichText`,  and Writing Tools may provide attributes for list layout
-    UIWritingToolsAllowedInputOptionsList = 1 << 2, 
-    
-    /// implies `RichText`,  and Writing Tools may provide attributes for tabular layout
-    UIWritingToolsAllowedInputOptionsTable = 1 << 3,
-} API_DEPRECATED("Use UIWritingToolsResultOptions instead", ios(18.0, API_TO_BE_DEPRECATED), macos(15.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos, watchos);;
-
-//
 // UIWritingToolsResultOptions
 //
 // Controls the configuration of the available Writing Tools UI
@@ -285,7 +263,6 @@
 @property(nullable,nonatomic,copy) UITextInputPasswordRules *passwordRules API_AVAILABLE(ios(12.0)) API_UNAVAILABLE(watchos); // default is nil
 
 @property UIWritingToolsBehavior writingToolsBehavior API_AVAILABLE(ios(18.0), macos(15.0)) API_UNAVAILABLE(tvos, watchos, visionos);
-@property UIWritingToolsAllowedInputOptions writingToolsAllowedInputOptions API_DEPRECATED_WITH_REPLACEMENT("allowedWritingToolsResultOptions", ios(18.0, API_TO_BE_DEPRECATED), macos(15.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos, watchos);
 @property UIWritingToolsResultOptions allowedWritingToolsResultOptions API_AVAILABLE(ios(18.0), macos(15.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos, watchos);
 
 @end
diff -ruN /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h
--- /Applications/Xcode_16.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h	2024-07-27 15:22:46
+++ /Applications/Xcode_16.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UITextView.h	2024-08-13 07:11:38
@@ -268,7 +268,6 @@
 
 // Also see UITextInputTraits.h
 @property UIWritingToolsBehavior writingToolsBehavior API_AVAILABLE(ios(18.0), macos(15.0)) API_UNAVAILABLE(tvos, watchos, visionos);
-@property UIWritingToolsAllowedInputOptions writingToolsAllowedInputOptions API_DEPRECATED_WITH_REPLACEMENT("allowedWritingToolsResultOptions", ios(18.0, API_TO_BE_DEPRECATED), macos(15.0, API_TO_BE_DEPRECATED)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos, watchos);
 
 // WARNING: UITextView does not support UIWritingToolsResultOptionsTable and will throw an exception for this value
 @property UIWritingToolsResultOptions allowedWritingToolsResultOptions API_AVAILABLE(ios(18.0), macos(15.0)) API_UNAVAILABLE(visionos) API_UNAVAILABLE(tvos, watchos);
Clone this wiki locally