Skip to content

SafariServices iOS xcode15.0 b5

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

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

diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h	2023-06-30 03:58:09
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAuthenticationSession.h	2023-07-15 21:44:35
@@ -11,8 +11,8 @@
 NS_ASSUME_NONNULL_BEGIN
 
 SF_EXTERN NSString * const SFAuthenticationErrorDomain
-#if defined(TARGET_OS_XR) && TARGET_OS_XR
-API_UNAVAILABLE(xros)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #endif
 API_DEPRECATED_WITH_REPLACEMENT("ASWebAuthenticationSessionErrorDomain", ios(11.0, 12.0));
 
@@ -23,13 +23,13 @@
 typedef NS_ENUM(NSInteger, SFAuthenticationError) {
     SFAuthenticationErrorCanceledLogin = 1,
 }
-#if defined(TARGET_OS_XR) && TARGET_OS_XR
-API_UNAVAILABLE(xros)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+typedef void (^SFAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error) API_UNAVAILABLE(visionos) NS_SWIFT_NAME(SFAuthenticationSession.CompletionHandler);
 #else
 typedef void (^SFAuthenticationCompletionHandler)(NSURL *_Nullable callbackURL, NSError *_Nullable error) NS_SWIFT_NAME(SFAuthenticationSession.CompletionHandler);
 #endif
@@ -57,8 +57,8 @@
  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)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #endif
 @interface SFAuthenticationSession : NSObject
 
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFContentBlockerManager.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFContentBlockerManager.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFContentBlockerManager.h	2023-06-30 02:04:43
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFContentBlockerManager.h	2023-07-20 00:48:01
@@ -13,8 +13,8 @@
 
 @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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+SF_EXTERN NSString * const SFContentBlockerErrorDomain API_DEPRECATED_WITH_REPLACEMENT("SFErrorDomain", ios(9.0, 10.0), macCatalyst(13.4, 13.4)) API_UNAVAILABLE(visionos);
 #else
 SF_EXTERN NSString * const SFContentBlockerErrorDomain API_DEPRECATED_WITH_REPLACEMENT("SFErrorDomain", ios(9.0, 10.0), macCatalyst(13.4, 13.4));
 #endif
@@ -24,8 +24,8 @@
     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,
 }
-#if defined(TARGET_OS_XR) && TARGET_OS_XR
-API_UNAVAILABLE(xros)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #endif
 API_DEPRECATED_WITH_REPLACEMENT("SFErrorCode", ios(9.0, 10.0), macCatalyst(13.4, 13.4));
 
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h	2023-06-30 03:58:09
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h	2023-07-20 00:48:01
@@ -19,8 +19,8 @@
     SFSafariViewControllerDismissButtonStyleClose,
     SFSafariViewControllerDismissButtonStyleCancel,
 }
-#if defined(TARGET_OS_XR) && TARGET_OS_XR
-API_UNAVAILABLE(xros)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #endif
 API_AVAILABLE(ios(11.0)) NS_SWIFT_NAME(SFSafariViewController.DismissButtonStyle);
 
@@ -48,8 +48,8 @@
     @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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+- (instancetype)initWithURL:(NSURL *)URL entersReaderIfAvailable:(BOOL)entersReaderIfAvailable NS_DESIGNATED_INITIALIZER API_DEPRECATED_WITH_REPLACEMENT("-initWithURL:configuration:", ios(9.0, 11.0)) API_UNAVAILABLE(visionos);
 #else
 - (instancetype)initWithURL:(NSURL *)URL entersReaderIfAvailable:(BOOL)entersReaderIfAvailable NS_DESIGNATED_INITIALIZER API_DEPRECATED_WITH_REPLACEMENT("-initWithURL:configuration:", ios(9.0, 11.0));
 #endif
@@ -60,8 +60,8 @@
 - (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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+@property (nonatomic, weak, nullable) id <SFSafariViewControllerDelegate> delegate API_UNAVAILABLE(visionos);
 #else
 @property (nonatomic, weak, nullable) id <SFSafariViewControllerDelegate> delegate;
 #endif
@@ -74,8 +74,8 @@
     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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+@property (nonatomic, nullable) UIColor *preferredBarTintColor API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos);
 #else
 @property (nonatomic, nullable) UIColor *preferredBarTintColor API_AVAILABLE(ios(10.0));
 #endif
@@ -84,8 +84,8 @@
     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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+@property (nonatomic, nullable) UIColor *preferredControlTintColor API_AVAILABLE(ios(10.0)) API_UNAVAILABLE(visionos);
 #else
 @property (nonatomic, nullable) UIColor *preferredControlTintColor API_AVAILABLE(ios(10.0));
 #endif
@@ -96,8 +96,8 @@
     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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+@property (nonatomic) SFSafariViewControllerDismissButtonStyle dismissButtonStyle API_AVAILABLE(ios(11.0)) API_UNAVAILABLE(visionos);
 #else
 @property (nonatomic) SFSafariViewControllerDismissButtonStyle dismissButtonStyle API_AVAILABLE(ios(11.0));
 #endif
@@ -115,8 +115,8 @@
     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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
++ (SFSafariViewControllerPrewarmingToken *)prewarmConnectionsToURLs:(NSArray<NSURL *> *)URLs NS_SWIFT_NAME(prewarmConnections(to:)) API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(visionos);
 #else
 + (SFSafariViewControllerPrewarmingToken *)prewarmConnectionsToURLs:(NSArray<NSURL *> *)URLs NS_SWIFT_NAME(prewarmConnections(to:)) API_AVAILABLE(ios(15.0));
 #endif
@@ -124,8 +124,8 @@
 @end
 
 API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos)
-#if defined(TARGET_OS_XR) && TARGET_OS_XR
-API_UNAVAILABLE(xros)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #endif
 @protocol SFSafariViewControllerDelegate <NSObject>
 @optional
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h	2023-06-30 02:04:43
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h	2023-07-20 00:48:01
@@ -20,8 +20,8 @@
  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)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #endif
 NS_SWIFT_NAME(SFSafariViewController.ActivityButton)
 @interface SFSafariViewControllerActivityButton : NSObject <NSCopying, NSSecureCoding>
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h	2023-06-30 02:04:43
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h	2023-07-20 00:48:01
@@ -25,8 +25,8 @@
     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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+@property (nonatomic) BOOL barCollapsingEnabled API_UNAVAILABLE(visionos);
 #else
 @property (nonatomic) BOOL barCollapsingEnabled;
 #endif
@@ -34,8 +34,8 @@
 /*! @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);
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+@property (nonatomic, nullable, copy) SFSafariViewControllerActivityButton *activityButton API_AVAILABLE(ios(15.0)) API_UNAVAILABLE(visionos);
 #else
 @property (nonatomic, nullable, copy) SFSafariViewControllerActivityButton *activityButton API_AVAILABLE(ios(15.0));
 #endif
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h	2023-06-30 02:04:43
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h	2023-07-20 00:48:01
@@ -6,8 +6,8 @@
 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)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #endif
 NS_SWIFT_NAME(SFSafariViewController.DataStore)
 @interface SFSafariViewControllerDataStore : NSObject
diff -ruN /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h
--- /Applications/Xcode_15.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h	2023-06-30 02:04:43
+++ /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h	2023-07-20 00:48:01
@@ -5,8 +5,8 @@
 NS_ASSUME_NONNULL_BEGIN
 
 SF_EXTERN API_AVAILABLE(ios(15.0))
-#if defined(TARGET_OS_XR) && TARGET_OS_XR
-API_UNAVAILABLE(xros)
+#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
+API_UNAVAILABLE(visionos)
 #endif
 NS_SWIFT_NAME(SFSafariViewController.PrewarmingToken)
 @interface SFSafariViewControllerPrewarmingToken : NSObject
Clone this wiki locally