Skip to content

SafariServices iOS xcode15.0 b1

Haritha Mohan edited this page Sep 6, 2023 · 3 revisions

#SafariServices.framework https://github.com/xamarin/xamarin-macios/pull/18939

diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h	2023-03-09 23:51:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h	2023-05-26 03:45:30
@@ -10,7 +10,11 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-SF_EXTERN NSString * const SFAuthenticationErrorDomain API_DEPRECATED_WITH_REPLACEMENT("ASWebAuthenticationSessionErrorDomain", ios(11.0, 12.0));
+SF_EXTERN NSString * const SFAuthenticationErrorDomain
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
+API_DEPRECATED_WITH_REPLACEMENT("ASWebAuthenticationSessionErrorDomain", ios(11.0, 12.0));
 
 /*! @enum SFAuthenticationError
  @abstract Error code of the NSError object passed in by SFAuthenticationCompletionHandler.
@@ -18,9 +22,17 @@
  */
 typedef NS_ENUM(NSInteger, SFAuthenticationError) {
     SFAuthenticationErrorCanceledLogin = 1,
-} API_DEPRECATED("Use ASWebAuthenticationSessionErrorCode instead", ios(11.0, 12.0));
+}
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
+API_DEPRECATED("Use ASWebAuthenticationSessionErrorCode instead", ios(11.0, 12.0));
 
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+typedef void (^SFAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error) API_UNAVAILABLE(xros) NS_SWIFT_NAME(SFAuthenticationSession.CompletionHandler);
+#else
 typedef void (^SFAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error) NS_SWIFT_NAME(SFAuthenticationSession.CompletionHandler);
+#endif
 
 /*!
  @class SFAuthenticationSession
@@ -45,6 +57,9 @@
  is showing the web service's login page.
  */
 SF_EXTERN API_DEPRECATED_WITH_REPLACEMENT("ASWebAuthenticationSession", ios(11.0, 12.0))
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
 @interface SFAuthenticationSession : NSObject
 
 - (instancetype)init NS_UNAVAILABLE;
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFContentBlockerManager.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFContentBlockerManager.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFContentBlockerManager.h	2023-03-09 23:51:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFContentBlockerManager.h	2023-06-01 04:44:53
@@ -13,13 +13,21 @@
 
 @class SFContentBlockerState;
 
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+SF_EXTERN NSString * const SFContentBlockerErrorDomain API_DEPRECATED_WITH_REPLACEMENT("SFErrorDomain", ios(9.0, 10.0), macCatalyst(13.4, 13.4)) API_UNAVAILABLE(xros);
+#else
 SF_EXTERN NSString * const SFContentBlockerErrorDomain API_DEPRECATED_WITH_REPLACEMENT("SFErrorDomain", ios(9.0, 10.0), macCatalyst(13.4, 13.4));
+#endif
 
 typedef NS_ENUM(NSInteger, SFContentBlockerErrorCode) {
     SFContentBlockerNoExtensionFound API_DEPRECATED_WITH_REPLACEMENT("SFErrorNoExtensionFound", ios(9.0, 10.0), macCatalyst(13.4, 13.4)) = SFErrorNoExtensionFound,
     SFContentBlockerNoAttachmentFound API_DEPRECATED_WITH_REPLACEMENT("SFErrorNoAttachmentFound", ios(9.0, 10.0), macCatalyst(13.4, 13.4)) = SFErrorNoAttachmentFound,
     SFContentBlockerLoadingInterrupted API_DEPRECATED_WITH_REPLACEMENT("SFErrorLoadingInterrupted", ios(9.0, 10.0), macCatalyst(13.4, 13.4)) = SFErrorLoadingInterrupted,
-} API_DEPRECATED_WITH_REPLACEMENT("SFErrorCode", ios(9.0, 10.0), macCatalyst(13.4, 13.4));
+}
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
+API_DEPRECATED_WITH_REPLACEMENT("SFErrorCode", ios(9.0, 10.0), macCatalyst(13.4, 13.4));
 
 SF_EXTERN API_AVAILABLE(ios(9.0), macCatalyst(13.4))
 @interface SFContentBlockerManager : NSObject
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariApplication.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariApplication.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariApplication.h	2023-03-09 23:51:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariApplication.h	2023-06-01 04:44:53
@@ -1,4 +1,4 @@
-// Copyright © 2021 Apple Inc. All rights reserved.
+// Copyright © 2021-2023 Apple Inc. All rights reserved.
 
 #import <Foundation/Foundation.h>
 #import <SafariServices/SFFoundation.h>
@@ -6,5 +6,7 @@
 NS_ASSUME_NONNULL_BEGIN
 
 SF_EXTERN NSString * const SFExtensionMessageKey API_AVAILABLE(ios(15.0));
+
+SF_EXTERN NSString * const SFExtensionProfileKey API_AVAILABLE(ios(17.0));
 
 NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h	2023-03-09 19:07:00
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h	2023-06-01 04:44:53
@@ -18,7 +18,11 @@
     SFSafariViewControllerDismissButtonStyleDone,
     SFSafariViewControllerDismissButtonStyleClose,
     SFSafariViewControllerDismissButtonStyleCancel,
-} API_AVAILABLE(ios(11.0)) NS_SWIFT_NAME(SFSafariViewController.DismissButtonStyle);
+}
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
+API_AVAILABLE(ios(11.0)) NS_SWIFT_NAME(SFSafariViewController.DismissButtonStyle);
 
 /*!
  @class SFSafariViewController
@@ -44,7 +48,11 @@
     @param entersReaderIfAvailable indicates if the Safari Reader version of content should be shown automatically
     when Safari Reader is available on a web page.
  */
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+- (instancetype)initWithURL:(NSURL *)URL entersReaderIfAvailable:(BOOL)entersReaderIfAvailable NS_DESIGNATED_INITIALIZER API_DEPRECATED_WITH_REPLACEMENT("-initWithURL:configuration:", ios(9.0, 11.0)) API_UNAVAILABLE(xros);
+#else
 - (instancetype)initWithURL:(NSURL *)URL entersReaderIfAvailable:(BOOL)entersReaderIfAvailable NS_DESIGNATED_INITIALIZER API_DEPRECATED_WITH_REPLACEMENT("-initWithURL:configuration:", ios(9.0, 11.0));
+#endif
 
 /*! @abstract Returns a view controller that loads a URL.
     @param URL the initial URL to navigate to. Only supports initial URLs with http:// or https:// schemes.
@@ -52,7 +60,11 @@
 - (instancetype)initWithURL:(NSURL *)URL;
 
 /*! @abstract The view controller's delegate. */
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+@property (nonatomic, weak, nullable) id <SFSafariViewControllerDelegate> delegate API_UNAVAILABLE(xros);
+#else
 @property (nonatomic, weak, nullable) id <SFSafariViewControllerDelegate> delegate;
+#endif
 
 /*! @abstract A copy of the configuration with which the view controller was
         initialized. */
@@ -62,13 +74,21 @@
     Browsing mode or is displaying an anti-phishing warning page, this color will be ignored. Changes made after the view controller
     has been presented will not be reflected.
  */
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+@property (nonatomic, nullable) UIColor *preferredBarTintColor API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(xros);
+#else
 @property (nonatomic, nullable) UIColor *preferredBarTintColor API_AVAILABLE(ios(10.0));
+#endif
 
 /*! @abstract The preferred color to tint the control buttons on the navigation bar and toolbar. If SFSafariViewController is in Private
     Browsing mode or is displaying an anti-phishing warning page, this color will be ignored. Changes made after the view controller
     has been presented will not be reflected.
  */
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+@property (nonatomic, nullable) UIColor *preferredControlTintColor API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(xros);
+#else
 @property (nonatomic, nullable) UIColor *preferredControlTintColor API_AVAILABLE(ios(10.0));
+#endif
 
 /*! @abstract The style of dismiss button to use in the navigation bar to close SFSafariViewController.
     The default value is SFSafariViewControllerDismissButtonStyleDone, which makes the button title the localized
@@ -76,7 +96,11 @@
     ideal when using SFSafariViewController to log in to an external service. All values will show a string localized
     to the user's locale. Changing this property after SFSafariViewController is presented will animate the change.
  */
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+@property (nonatomic) SFSafariViewControllerDismissButtonStyle dismissButtonStyle API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(xros);
+#else
 @property (nonatomic) SFSafariViewControllerDismissButtonStyle dismissButtonStyle API_AVAILABLE(ios(11.0));
+#endif
 
 /*! @abstract Prewarms a connection to each URL. SFSafariViewController will automatically use a
     prewarmed connection if possible when loading its initial URL.
@@ -91,11 +115,18 @@
     to present SFSafariViewController soon. Many HTTP servers time out connections after a few minutes.
     After a timeout, prewarming delivers less performance benefit.
  */
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
++ (SFSafariViewControllerPrewarmingToken *)prewarmConnectionsToURLs:(NSArray<NSURL *> *)URLs NS_SWIFT_NAME(prewarmConnections(to:)) API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(xros);
+#else
 + (SFSafariViewControllerPrewarmingToken *)prewarmConnectionsToURLs:(NSArray<NSURL *> *)URLs NS_SWIFT_NAME(prewarmConnections(to:)) API_AVAILABLE(ios(15.0));
+#endif
 
 @end
 
 API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos)
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
 @protocol SFSafariViewControllerDelegate <NSObject>
 @optional
 
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h	2023-03-09 23:51:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h	2023-06-01 04:44:53
@@ -20,6 +20,9 @@
  To set a different description for VoiceOver to read, set this object's `accessibilityLabel` property.
  */
 SF_EXTERN API_AVAILABLE(ios(15.0))
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
 NS_SWIFT_NAME(SFSafariViewController.ActivityButton)
 @interface SFSafariViewControllerActivityButton : NSObject <NSCopying, NSSecureCoding>
 
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h	2023-03-09 23:51:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h	2023-06-01 04:44:53
@@ -25,12 +25,20 @@
     when the user scrolls web content.
     @discussion The default value is YES.
  */
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+@property (nonatomic) BOOL barCollapsingEnabled API_UNAVAILABLE(xros);
+#else
 @property (nonatomic) BOOL barCollapsingEnabled;
+#endif
 
 /*! @abstract An additional button to be shown in SFSafariViewController's toolbar. See @link SFSafariViewControllerActivityButton @/link for more details.
  @discussion This allows the user to access powerful functionality from your extension without needing to first show the UIActivityViewController.
  */
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+@property (nonatomic, nullable, copy) SFSafariViewControllerActivityButton *activityButton API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(xros);
+#else
 @property (nonatomic, nullable, copy) SFSafariViewControllerActivityButton *activityButton API_AVAILABLE(ios(15.0));
+#endif
 
 /*! @abstract An event attribution associated with a click that caused this SFSafariViewController to be opened.
  @discussion This attribute is ignored if the SFSafariViewController initialURL has a scheme of 'http'.
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h	2023-03-09 23:51:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h	2023-06-01 04:44:53
@@ -6,6 +6,9 @@
 NS_ASSUME_NONNULL_BEGIN
 
 SF_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos)
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
 NS_SWIFT_NAME(SFSafariViewController.DataStore)
 @interface SFSafariViewControllerDataStore : NSObject
 
diff -ruN /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h
--- /Applications/Xcode_14.3.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h	2023-03-09 23:51:57
+++ /Applications/Xcode_15.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h	2023-06-01 04:44:53
@@ -5,6 +5,9 @@
 NS_ASSUME_NONNULL_BEGIN
 
 SF_EXTERN API_AVAILABLE(ios(15.0))
+#if defined(TARGET_OS_XR) && TARGET_OS_XR
+API_UNAVAILABLE(xros)
+#endif
 NS_SWIFT_NAME(SFSafariViewController.PrewarmingToken)
 @interface SFSafariViewControllerPrewarmingToken : NSObject
 
Clone this wiki locally