Documentation Archive Developer
Search

WebKit Changes for Objective-C

WebKit

WKBackForwardList.h

Declaration
From
@property(nonatomic, readonly, copy) NSArray *backList
To
@property(nonatomic, readonly, copy, nonnull) NSArray<WKBackForwardListItem *> *backList

Declaration
From
@property(nonatomic, readonly, copy) NSArray *forwardList
To
@property(nonatomic, readonly, copy, nonnull) NSArray<WKBackForwardListItem *> *forwardList

WKError.h

WKFrameInfo.h

WKNavigationDelegate.h

WKSecurityOrigin.h (Added)

WKUIDelegate.h

WKUserContentController.h

Declaration
From
@property(nonatomic, readonly, copy) NSArray *userScripts
To
@property(nonatomic, readonly, copy, nonnull) NSArray<WKUserScript *> *userScripts

WKWebsiteDataRecord.h (Added)

WKWebsiteDataStore.h (Added)

WKWebView.h

Declaration
From
- (void)evaluateJavaScript:(NSString *)javaScriptString completionHandler:(void (^)(id, NSError *))completionHandler
To
- (void)evaluateJavaScript:(NSString * _Nonnull)javaScriptString completionHandler:(void (^ _Nullable)(id _Nullable, NSError * _Nullable error))completionHandler

WKWebViewConfiguration.h