-
Notifications
You must be signed in to change notification settings - Fork 575
SafariServices iOS xcode27.0 b4
Alex Soto edited this page Jul 24, 2026
·
2 revisions
#SafariServices.framework https://github.com/dotnet/macios/pull/26274
diff -ruN /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariSettings.h /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariSettings.h
--- /Applications/Xcode_27.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariSettings.h 2026-07-02 04:08:07
+++ /Applications/Xcode_27.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariSettings.h 2026-07-14 02:39:26
@@ -6,8 +6,20 @@
NS_ASSUME_NONNULL_BEGIN
+API_AVAILABLE(macCatalyst(27.0)) API_UNAVAILABLE(ios, visionos, tvos, watchos)
+typedef NS_ENUM(NSInteger, SFSafariSettingsError) {
+ /// The process does not have the permission to call this API.
+ SFSafariSettingsErrorNotAllowed,
+ /// The system was unable to perform the requested operation.
+ SFSafariSettingsErrorFailed,
+};
+
+API_AVAILABLE(macCatalyst(27.0)) API_UNAVAILABLE(ios, visionos, tvos, watchos)
+extern NSString * const SFSafariSettingsErrorDomain;
+
NS_SWIFT_SENDABLE
-SF_EXTERN API_AVAILABLE(ios(26.0), visionos(26.0)) API_UNAVAILABLE(macCatalyst, tvos, watchos)
+SF_EXTERN
+API_AVAILABLE(macCatalyst(27.0), ios(26.0), visionos(26.0)) API_UNAVAILABLE(tvos, watchos)
@interface SFSafariSettings : NSObject
+ (instancetype)new NS_UNAVAILABLE;
@@ -18,7 +30,7 @@
/// - completionHandler: The block the system calls after the operation completes, with an optional error parameter if an error occurs.
/// - term error: An error object indicating the reason for the failure, or `nil` if the system successfully opens the sheet.
/// @discussion Call this method when your app is in the foreground, otherwise it returns an error.
-+ (void)openExportBrowsingDataSettingsWithCompletionHandler:(nullable NS_SWIFT_UI_ACTOR void (^)(NSError * _Nullable error))completionHandler;
++ (void)openExportBrowsingDataSettingsWithCompletionHandler:(nullable NS_SWIFT_UI_ACTOR void (^)(NSError * _Nullable error))completionHandler API_UNAVAILABLE(macCatalyst);
/// Launches Settings to Safari Extensions Settings
/// - Parameters:
@@ -26,7 +38,15 @@
/// - completionHandler: The block the system calls after the operation completes, with an optional error parameter if an error occurs.
/// - term error: An error object indicating the reason for the failure, or `nil` if the system successfully opens to Safari Extensions Settings.
/// @discussion Call this method when your app is in the foreground, otherwise it returns an error.
-+ (void)openExtensionsSettingsForIdentifiers:(NSArray<NSString *> *)extensionIdentifiers completionHandler:(nullable NS_SWIFT_UI_ACTOR void (^)(NSError * _Nullable error))completionHandler API_AVAILABLE(ios(26.2), visionos(26.2));
++ (void)openExtensionsSettingsForIdentifiers:(NSArray<NSString *> *)extensionIdentifiers completionHandler:(nullable NS_SWIFT_UI_ACTOR void (^)(NSError * _Nullable error))completionHandler API_AVAILABLE(ios(26.2), visionos(26.2)) API_UNAVAILABLE(macCatalyst);
+
+/// Query the value of the Safari settings toggle for AutoFill > User names and passwords
+/// - Parameters:
+/// - completionHandler: The block the system calls after the operation complets, with a boolean parameter representing the toggle value.
+/// - term isEnabled: A boolean value representing the current value of the toggle.
+/// - term error: An SFSafariSettingsError if any occurred. If non-nil, the value of `isEnabled`
++ (void)checkAutoFillUserNamesAndPasswordsEnabledWithCompletionHandler:(void (^)(BOOL isEnabled, NSError * _Nullable error))completionHandler NS_SWIFT_ASYNC_NAME(getter:isAutoFillUserNamesAndPasswordsEnabled()) API_AVAILABLE(macCatalyst(27.0)) API_UNAVAILABLE(ios, visionos);
+
@end
NS_ASSUME_NONNULL_END