Skip to content

SafariServices iOS xcode14.0 beta1

Manuel de la Pena edited this page Aug 4, 2022 · 3 revisions

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

diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h	1969-12-31 19:00:00.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerDataStore.h	2022-05-31 14:51:01.000000000 -0400
@@ -0,0 +1,23 @@
+// Copyright © 2022 Apple Inc. All rights reserved.
+
+#import <Foundation/Foundation.h>
+#import <SafariServices/SFFoundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+SF_EXTERN API_AVAILABLE(ios(16.0))
+NS_SWIFT_NAME(SFSafariViewController.DataStore)
+@interface SFSafariViewControllerDataStore : NSObject
+
+- (instancetype)init NS_UNAVAILABLE;
++ (instancetype)new NS_UNAVAILABLE;
+@property (class, nonatomic, readonly, strong) SFSafariViewControllerDataStore *defaultDataStore;
+
+/*! Clear associated website data accrued from browsing activity within your app. This includes all local storage,
+    cached resources, and cookies.
+ */
+- (void)clearWebsiteDataWithCompletionHandler:(nullable void (^)(void))completion;
+
+@end
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h	2022-02-19 00:22:07.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h	2022-05-28 01:57:19.000000000 -0400
@@ -14,5 +14,6 @@
 #import <SafariServices/SFSafariViewController.h>
 #import <SafariServices/SFSafariViewControllerActivityButton.h>
 #import <SafariServices/SFSafariViewControllerConfiguration.h>
+#import <SafariServices/SFSafariViewControllerDataStore.h>
 #import <SafariServices/SFSafariViewControllerPrewarmingToken.h>
 #import <SafariServices/SSReadingList.h>
Clone this wiki locally