Skip to content

SafariServices iOS xcode15.3 b1

Alex Soto edited this page Jan 27, 2024 · 1 revision

#SafariServices.framework

diff -ruN /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAddToHomeScreenActivityItem.h /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAddToHomeScreenActivityItem.h
--- /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAddToHomeScreenActivityItem.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFAddToHomeScreenActivityItem.h	2024-01-20 23:38:33
@@ -0,0 +1,35 @@
+// Copyright © 2023 Apple Inc. All rights reserved.
+
+#import <Foundation/Foundation.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+/*! 
+ @protocol SFAddToHomeScreenActivityItem
+ An activity item for adding "Add to Home Screen" activity type into activity view (share sheet) list.
+ */
+API_AVAILABLE(ios(17.4))
+@protocol SFAddToHomeScreenActivityItem <NSObject>
+
+/*! @abstract The URL for the home screen bookmark item.
+ The URL scheme should be HTTP or HTTPS.
+ This URL will be shown to user in the confirmation sheet.
+ */
+@property (nonatomic, readonly) NSURL *URL;
+
+/*! @abstract The title for the home screen bookmark item.
+ This URL will be shown to user in the confirmation sheet.
+ */
+@property (nonatomic, readonly) NSString *title;
+
+/*! @abstract An optional item provider for providing website icons.
+ This provider should register and provide an item with the UIImage type.
+ A default icon for the website will be shown to user if an icon is not provided.
+ */
+@optional
+@property (nonatomic, nullable, readonly) NSItemProvider *iconItemProvider;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
diff -ruN /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFDefaultBrowserViewController.h /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFDefaultBrowserViewController.h
--- /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFDefaultBrowserViewController.h	1969-12-31 19:00:00
+++ /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SFDefaultBrowserViewController.h	2024-01-20 23:38:32
@@ -0,0 +1,17 @@
+// Copyright © 2023 Apple Inc. All rights reserved.
+
+
+#import <SafariServices/SFFoundation.h>
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+SF_EXTERN
+@interface SFDefaultBrowserViewController : UIViewController <UINavigationControllerDelegate>
+
+- (instancetype)initWithViewDidBecomeReady:(void (^)(BOOL))viewDidBecomeReady completition:(void (^)(BOOL))completion;
+
+@end
+
+NS_ASSUME_NONNULL_END
+
diff -ruN /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h
--- /Applications/Xcode_15.2.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h	2023-11-13 01:23:49
+++ /Applications/Xcode_15.3.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h	2024-01-20 23:38:33
@@ -5,6 +5,7 @@
 //  Copyright (c) 2013 Apple Inc. All rights reserved.
 //
 
+#import <SafariServices/SFAddToHomeScreenActivityItem.h>
 #import <SafariServices/SFAuthenticationSession.h>
 #import <SafariServices/SFContentBlockerManager.h>
 #import <SafariServices/SFContentBlockerState.h>
Clone this wiki locally