-
Notifications
You must be signed in to change notification settings - Fork 548
SafariServices MacCatalyst xcode26.0 b3
Rolf Bjarne Kvinge edited this page Jul 22, 2025
·
2 revisions
#SafariServices.framework https://github.com/dotnet/macios/pull/23377
diff -ruN /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h
--- /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h 2025-06-19 07:19:11
+++ /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h 2025-07-02 08:02:00
@@ -19,9 +19,7 @@
SFSafariViewControllerDismissButtonStyleClose,
SFSafariViewControllerDismissButtonStyleCancel,
}
-#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
API_UNAVAILABLE(visionos)
-#endif
API_AVAILABLE(ios(11.0)) NS_SWIFT_NAME(SFSafariViewController.DismissButtonStyle);
/*!
@@ -48,11 +46,7 @@
@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_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
/*! @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.
@@ -60,11 +54,7 @@
- (instancetype)initWithURL:(NSURL *)URL;
/*! @abstract The view controller's delegate. */
-#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
/*! @abstract A copy of the configuration with which the view controller was
initialized. */
@@ -74,32 +64,20 @@
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_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
+@property (nonatomic, nullable) UIColor *preferredBarTintColor API_DEPRECATED("Tinting the bars interferes with background effects that the system provides.", ios(10.0, 26.0)) API_UNAVAILABLE(visionos);
/*! @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_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
+@property (nonatomic, nullable) UIColor *preferredControlTintColor API_DEPRECATED("Tinting the controls interferes with background effects that the system provides.", ios(10.0, 26.0)) API_UNAVAILABLE(visionos);
/*! @abstract The style of dismiss button to use in the navigation bar to close SFSafariViewController.
The default value is SFSafariViewControllerDismissButtonStyleClose, which makes the button image display an "xmark" icon.
You can use other values such as SFSafariViewControllerDismissButtonStyleDone, which display a "checkmark" icon, to provide
consistency with your app. Changing this property after SFSafariViewController is presented will animate the change.
*/
-#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
/*! @abstract Prewarms a connection to each URL. SFSafariViewController will automatically use a
prewarmed connection if possible when loading its initial URL.
@@ -114,18 +92,12 @@
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_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
@end
API_AVAILABLE(ios(9.0)) API_UNAVAILABLE(watchos)
-#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
API_UNAVAILABLE(visionos)
-#endif
@protocol SFSafariViewControllerDelegate <NSObject>
@optional
diff -ruN /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h
--- /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h 2025-06-18 09:12:30
+++ /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerActivityButton.h 2025-07-02 08:02:00
@@ -20,9 +20,7 @@
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_VISION) && TARGET_OS_VISION
API_UNAVAILABLE(visionos)
-#endif
NS_SWIFT_NAME(SFSafariViewController.ActivityButton)
@interface SFSafariViewControllerActivityButton : NSObject <NSCopying, NSSecureCoding>
diff -ruN /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h
--- /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h 2025-06-18 09:12:30
+++ /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h 2025-07-02 08:02:00
@@ -25,20 +25,12 @@
when the user scrolls web content.
@discussion The default value is YES.
*/
-#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
@property (nonatomic) BOOL barCollapsingEnabled API_UNAVAILABLE(visionos);
-#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_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
/*! @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_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h
--- /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h 2025-06-18 09:12:30
+++ /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h 2025-07-02 08:02:00
@@ -6,9 +6,7 @@
NS_ASSUME_NONNULL_BEGIN
SF_EXTERN API_AVAILABLE(ios(16.0)) API_UNAVAILABLE(watchos, tvos)
-#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
API_UNAVAILABLE(visionos)
-#endif
NS_SWIFT_NAME(SFSafariViewController.DataStore)
@interface SFSafariViewControllerDataStore : NSObject
diff -ruN /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h
--- /Applications/Xcode_26.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h 2025-06-18 09:12:30
+++ /Applications/Xcode_26.0.0-beta3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/iOSSupport/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerPrewarmingToken.h 2025-07-02 08:02:00
@@ -5,9 +5,7 @@
NS_ASSUME_NONNULL_BEGIN
SF_EXTERN API_AVAILABLE(ios(15.0))
-#if defined(TARGET_OS_VISION) && TARGET_OS_VISION
API_UNAVAILABLE(visionos)
-#endif
NS_SWIFT_NAME(SFSafariViewController.PrewarmingToken)
@interface SFSafariViewControllerPrewarmingToken : NSObject