-
Notifications
You must be signed in to change notification settings - Fork 542
WebKit iOS xcode26.0 b1
Alex Soto edited this page Jun 9, 2025
·
1 revision
#WebKit.framework
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h 2025-05-03 23:58:15
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h 2025-06-02 00:56:23
@@ -31,7 +31,7 @@
/*! WKOpenPanelParameters contains parameters that a file upload control has specified.
*/
WK_SWIFT_UI_ACTOR
-WK_EXTERN API_AVAILABLE(macos(10.12), ios(18.4))
+WK_EXTERN API_AVAILABLE(macos(10.12), ios(18.4), visionos(2.4))
@interface WKOpenPanelParameters : NSObject
/*! @abstract Whether the file upload control supports multiple files.
@@ -40,7 +40,7 @@
/*! @abstract Whether the file upload control supports selecting directories.
*/
-@property (nonatomic, readonly) BOOL allowsDirectories API_AVAILABLE(macos(10.13.4), ios(18.4));
+@property (nonatomic, readonly) BOOL allowsDirectories API_AVAILABLE(macos(10.13.4), ios(18.4), visionos(2.4));
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h 2025-05-03 23:53:47
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h 2025-06-02 02:24:41
@@ -109,6 +109,10 @@
@property (nonatomic) BOOL javaScriptEnabled API_DEPRECATED("Use WKWebpagePreferences.allowsContentJavaScript to disable content JavaScript on a per-navigation basis", macos(10.10, 11.0), ios(8.0, 14.0));
+/*! @abstract A Boolean value indicating whether LookToScroll is enabled.
+ @discussion The default value is `NO`.
+ */
+@property (nonatomic) BOOL isLookToScrollEnabled API_AVAILABLE(visionos(NA));
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h 2025-05-03 23:53:48
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKUIDelegate.h 2025-06-02 01:08:12
@@ -46,6 +46,10 @@
@protocol UIEditMenuInteractionAnimating;
#endif
+#if TARGET_OS_IOS
+@class UIInputSuggestion;
+#endif
+
typedef NS_ENUM(NSInteger, WKPermissionDecision) {
WKPermissionDecisionPrompt,
WKPermissionDecisionGrant,
@@ -285,10 +289,20 @@
@param completionHandler The completion handler to call after open panel has been dismissed. Pass the selected URLs if the user chose OK, otherwise nil.
If you do not implement this method on macOS, the web view will behave as if the user selected the Cancel button.
- If you do not implement this method on iOS, the web view will match the file upload behavior of Safari. If you desire
- the web view to act as if the user selected the Cancel button on iOS, immediately call the completion handler with nil.
+ If you do not implement this method on iOS or visionOS, the web view will match the file upload behavior of Safari. If you desire
+ the web view to act as if the user selected the Cancel button on iOS or visionOS, immediately call the completion handler with nil.
*/
-- (void)webView:(WKWebView *)webView runOpenPanelWithParameters:(WKOpenPanelParameters *)parameters initiatedByFrame:(WKFrameInfo *)frame completionHandler:(WK_SWIFT_UI_ACTOR void (^)(NSArray<NSURL *> * _Nullable URLs))completionHandler API_AVAILABLE(macos(10.12), ios(18.4));
+- (void)webView:(WKWebView *)webView runOpenPanelWithParameters:(WKOpenPanelParameters *)parameters initiatedByFrame:(WKFrameInfo *)frame completionHandler:(WK_SWIFT_UI_ACTOR void (^)(NSArray<NSURL *> * _Nullable URLs))completionHandler API_AVAILABLE(macos(10.12), ios(18.4), visionos(2.4));
+
+#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && __IPHONE_OS_VERSION_MIN_REQUIRED >= 180400
+
+/*! @abstract Tells the delegate when the keyboard delivers an input suggestion.
+ @param webView The web view where the input suggestion should be inserted.
+ @param inputSuggestion The input suggestion that the user or system selected.
+ */
+- (void)webView:(WKWebView *)webView insertInputSuggestion:(UIInputSuggestion *)inputSuggestion API_AVAILABLE(ios(18.4)) API_UNAVAILABLE(tvos, watchos, visionos, macCatalyst) NS_SWIFT_NAME(webView(_:insertInputSuggestion:));
+
+#endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST && __IPHONE_OS_VERSION_MIN_REQUIRED >= 180400
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h 2025-05-03 23:52:07
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h 2025-06-02 00:56:23
@@ -35,6 +35,7 @@
#if TARGET_OS_IOS
@class UIFindInteraction;
+@class UIConversationContext;
#endif
@class WKBackForwardList;
@@ -540,6 +541,10 @@
*/
@property (nonatomic, nullable, copy) id interactionState API_AVAILABLE(macos(12.0), ios(15.0));
+/*! @abstract A Boolean value indicating whether Screen Time blocking has occurred.
+ */
+@property (nonatomic, readonly) BOOL isBlockedByScreenTime API_AVAILABLE(macos(NA), ios(18.4));
+
/*! @abstract Sets the webpage contents from the passed data as if it was the
response to the supplied request. The request is never actually sent to the
supplied URL, though loads of resources defined in the NSData object would
@@ -655,6 +660,16 @@
#endif
+#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST && __IPHONE_OS_VERSION_MIN_REQUIRED >= 180400
+
+/*! @abstract A reference to a conversation, such as a mail or messaging thread.
+ @discussion Set this conversation context before the keyboard appears; the keyboard uses this context to initialize its conversation context value. When your conversation updates, update the smart reply by setting this property.
+ */
+
+@property (strong, nonatomic) UIConversationContext *conversationContext API_AVAILABLE(ios(18.4)) API_UNAVAILABLE(tvos, watchos, visionos, macCatalyst);
+
+#endif // TARGET_OS_IOS && !TARGET_OS_MACCATALYST && __IPHONE_OS_VERSION_MIN_REQUIRED >= 180400
+
/*!
@abstract Controls whether this @link WKWebView @/link is inspectable in Web Inspector.
@discussion The default value is NO.
@@ -665,6 +680,26 @@
@discussion @link WKWebView @/link is key-value observing (KVO) compliant for this property.
*/
@property (nonatomic, readonly, getter=isWritingToolsActive) BOOL writingToolsActive API_AVAILABLE(macos(15.0), ios(18.0), visionos(NA));
+
+/* @enum WKWebViewDataType
+ @abstract The type of WKWebView data.
+ @constant WKWebViewDataTypeSessionStorage Session Storage data.
+*/
+typedef NS_OPTIONS(NSUInteger, WKWebViewDataType) {
+ WKWebViewDataTypeSessionStorage = 1 << 0
+} API_AVAILABLE(macos(NA), ios(18.4), visionos(NA));
+
+/* @abstract Called when the client wants to fetch WKWebView data.
+ @param dataTypes The option set of WKWebView data types whose data the client wants to fetch.
+ @param completionHandler The completion handler that should be invoked with the retrieved data and possibly an error. The retrieved data will be a serialized blob. If an error occurred, the retrieved data will be nil. An error may occur if the data cannot be retrieved for some reason (such as a crash).
+*/
+- (void)fetchDataOfTypes:(WKWebViewDataType)dataTypes completionHandler:(WK_SWIFT_UI_ACTOR void (^)(NSData * _Nullable data, NSError * _Nullable error))completionHandler NS_SWIFT_NAME(fetchData(of:completionHandler:)) API_AVAILABLE(macos(NA), ios(18.4), visionos(NA));
+
+/* @abstract Called when the client wants to restore WKWebView data.
+ @param data The serialized blob containing the data that the client wants to restore.
+ @param completionHandler The completion handler that may be invoked with an error if the data is in an invalid format or if the data cannot be restored for some other reason (such as a crash).
+ */
+- (void)restoreData:(NSData *)data completionHandler:(WK_SWIFT_UI_ACTOR void(^)(NSError * _Nullable error))completionHandler NS_SWIFT_NAME(restoreData(_:completionHandler:)) API_AVAILABLE(macos(NA), ios(18.4), visionos(NA));
@end
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h 2025-05-03 23:58:14
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h 2025-06-02 00:56:22
@@ -140,6 +140,11 @@
*/
@property (nonatomic) BOOL allowsAirPlayForMediaPlayback API_AVAILABLE(macos(10.11), ios(9.0));
+/*! @abstract A Boolean value indicating whether the System Screen Time blocking view should be shown.
+ @discussion The default value is YES.
+ */
+@property (nonatomic) BOOL showsSystemScreenTimeBlockingView API_AVAILABLE(macos(NA), ios(18.4));
+
/*! @abstract A Boolean value indicating whether HTTP requests to servers known to support HTTPS should be automatically upgraded to HTTPS requests.
@discussion The default value is YES.
*/
@@ -232,12 +237,12 @@
*/
@property (nonatomic) BOOL supportsAdaptiveImageGlyph API_AVAILABLE(macos(15.0), ios(18.0), visionos(2.0));
-#if (TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000) || (defined(TARGET_OS_VISION) && TARGET_OS_VISION && __has_include(<GameKit/GKReleaseState.h>))
+#if (TARGET_OS_IOS && __IPHONE_OS_VERSION_MAX_ALLOWED >= 180000) || (defined(TARGET_OS_VISION) && TARGET_OS_VISION && __VISION_OS_VERSION_MIN_REQUIRED >= 20400)
/*! @abstract The preferred behavior of Writing Tools.
@discussion The default behavior is equivalent to `UIWritingToolsBehaviorLimited`.
*/
-@property (nonatomic) UIWritingToolsBehavior writingToolsBehavior API_AVAILABLE(ios(18.0), visionos(NA));
-#elif TARGET_OS_OSX && __MAC_OS_X_VERSION_MAX_ALLOWED >= 150000
+@property (nonatomic) UIWritingToolsBehavior writingToolsBehavior API_AVAILABLE(ios(18.0), visionos(2.4));
+#elif TARGET_OS_OSX && __MAC_OS_X_VERSION_MIN_REQUIRED >= 150000
/*! @abstract The preferred behavior of Writing Tools.
@discussion The default behavior is equivalent to `NSWritingToolsBehaviorLimited`.
*/
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h 2025-05-03 23:58:14
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h 2025-06-02 00:56:23
@@ -71,6 +71,9 @@
/*! @constant WKWebsiteDataTypeHashSalt Hash salt for deviceId */
WK_EXTERN NSString * const WKWebsiteDataTypeHashSalt API_AVAILABLE(macos(14.0), ios(17.0));
+/*! @constant WKWebsiteDataTypeScreenTime Screen Time information */
+WK_EXTERN NSString * const WKWebsiteDataTypeScreenTime API_AVAILABLE(macos(NA), ios(18.4));
+
/*! A WKWebsiteDataRecord represents website data, grouped by domain name using the public suffix list. */
WK_SWIFT_UI_ACTOR
WK_EXTERN API_AVAILABLE(macos(10.11), ios(9.0))
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h 2025-05-03 23:51:48
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h 2025-06-02 01:08:12
@@ -89,6 +89,18 @@
*/
@property (nonatomic, readonly, nullable) NSUUID *identifier API_AVAILABLE(macos(14.0), ios(17.0));
+/* @abstract Called when the client wants to fetch WKWebsiteDataStore data.
+ @param dataTypes The set of WKWebsiteDataStore data types whose data the client wants to fetch.
+ @param completionHandler The completion handler that should be invoked with the retrieved data and possibly an error. The retrieved data will be a serialized blob. If an error occurred, the retrieved data will be nil. An error may occur if a requested data type is not supported or if the data cannot be retrieved for some other reason (such as a crash).
+ */
+- (void)fetchDataOfTypes:(NSSet<NSString *> *)dataTypes completionHandler:(WK_SWIFT_UI_ACTOR void(^)(NSData * _Nullable data, NSError * _Nullable error))completionHandler NS_SWIFT_NAME(fetchData(of:completionHandler:)) API_AVAILABLE(macos(NA), ios(18.4), visionos(NA));
+
+/* @abstract Called when the client wants to restore WKWebsiteDataStore data.
+ @param data The serialized blob containing the data that the client wants to restore.
+ @param completionHandler The completion handler that may be invoked with an error if the data is in an invalid format or if the data cannot be restored for some other reason (such as a crash).
+ */
+- (void)restoreData:(NSData *)data completionHandler:(WK_SWIFT_UI_ACTOR void(^)(NSError * _Nullable error))completionHandler NS_SWIFT_NAME(restoreData(_:completionHandler:)) API_AVAILABLE(macos(NA), ios(18.4), visionos(NA));
+
/*! @abstract Get a persistent data store.
@param identifier An identifier that is used to uniquely identify the data store.
@discussion If a data store with this identifier does not exist yet, it will be created. Throws exception if identifier