Skip Navigation

WKWebView: Unsupported methods and properties

Class: WKWebView

The SDK returns its own internal delegate. If you set a custom delegate the property will work as expected.
/*! @abstract The web view's user interface delegate. */ @property (nullable, nonatomic, weak) id <WKUIDelegate> UIDelegate;
Files can be loaded from a bundle or from the App folder, but they can't be loaded from an encrypted, secured container that is protected by the SDK.
/*! @abstract Navigates to the requested file URL on the filesystem. @param URL The file URL to which to navigate. @param readAccessURL The URL to allow read access to. @discussion If readAccessURL references a single file, only that file may be loaded by WebKit. If readAccessURL references a directory, files inside that file may be loaded by WebKit. @result A new navigation for the given file URL. */ - (nullable WKNavigation *)loadFileURL:(NSURL *)URL allowingReadAccessToURL:(NSURL *)readAccessURL API_AVAILABLE(macos(10.11), ios(9.0));
The SDK returns nil for this property.
/*! @abstract A SecTrustRef for the currently committed navigation. @discussion @link WKWebView @/link is key-value observing (KVO) compliant for this property. */ @property (nonatomic, readonly, nullable) SecTrustRef serverTrust API_AVAILABLE(macos(10.12), ios(10.0));

Class: WKWebViewConfiguration

The SDK overwrites this property with a non-persistent data store. No data is written to the file system.
/*! @abstract The website data store to be used by the web view. */ @property (nonatomic, strong) WKWebsiteDataStore *websiteDataStore API_AVAILABLE(macos(10.11), ios(9.0));

Class: WKHTTPCookieStore

The SDK ignores this method.
/*! @abstract Set a cookie. @param cookie The cookie to set. @param completionHandler A block to invoke once the cookie has been stored. */ - (void)setCookie:(NSHTTPCookie *)cookie completionHandler:(nullable void (^)(void))completionHandler;
The SDK ignores this method.
/*! @abstract Delete the specified cookie. @param completionHandler A block to invoke once the cookie has been deleted. */ - (void)deleteCookie:(NSHTTPCookie *)cookie completionHandler:(nullable void (^)(void))completionHandler;

Class: WKUserContentController

The SDK injects its own scripts, so calling this method will break how the SDK supports WKWebView.
/*! @abstract Removes all associated user scripts. */ - (void)removeAllUserScripts;

Class: NSAttributedString (NSAttributedStirngWebKitAdditions)

Files can be loaded from a bundle or from the App folder, but can't be loaded from an encrypted, secured container that is protected by the SDK.
/*! @abstract Converts a local HTML file into an attributed string. @param fileURL The file URL to load. @param options Document attributes for interpreting the document contents. NSTextSizeMultiplierDocumentOption, NSTimeoutDocumentOption and NSReadAccessURLDocumentOption are supported option keys. @param completionHandler A block to invoke when the operation completes or fails. @discussion The completionHandler is passed the attributed string result along with any document-level attributes, or an error. If NSReadAccessURLDocumentOption references a single file, only that file may be loaded by WebKit. If NSReadAccessURLDocumentOption references a directory, files inside that directory may be loaded by WebKit. */ + (void)loadFromHTMLWithFileURL:(NSURL *)fileURL options:(NSDictionary<NSAttributedStringDocumentReadingOptionKey, id> *)options completionHandler:(NSAttributedStringCompletionHandler)completionHandler NS_SWIFT_NAME(loadFromHTML(fileURL:options:completionHandler:)) API_AVAILABLE(macos(10.15), ios(13.0));