WebKit for AppKit and UIKit
Display web content in AppKit or UIKit apps, or apps built with Objective-C.
Overview
Present a WKWebView object from your custom view hierarchies and load the content you want to display. Use supporting objects to manage cookies, evaluate scripts, control navigation, generate snapshots, and perform text-based searches.
Topics
Web views
Replacing UIWebView in your appViewing Desktop or Mobile Web Content Using a Web ViewWKWebViewWKUIDelegate
Web view configuration
WKWebViewConfigurationWKWindowFeaturesWKProcessPoolWKPreferencesWKWebpagePreferencesWKWebpagePreferences.ContentModeWKWebpagePreferences.UpgradeToHTTPSPolicyWKSecurityRestrictionModeWKPreferences.InactiveSchedulingPolicyWKWebView.FullscreenState
Web data management
WKWebsiteDataStoreWKWebsiteDataRecordWKHTTPCookieStoreWKURLSchemeHandlerWKURLSchemeTaskreadAccessURL
Navigation
WKNavigationDelegateWKBackForwardListWKBackForwardListItemWKNavigationWKNavigationActionWKNavigationResponseWKFormInfo
Downloads
Page content
WKUserContentControllerWKContentRuleListStoreWKContentWorldWKFrameInfoWKSecurityOriginWKUserScriptWKContentWorld.ConfigurationWKJSHandle
Page-level search
Contextual menus
Snapshots
Web extensions
WKWebExtensionWKWebExtensionTabWKWebExtensionWindowWKWebExtensionContextWKWebExtensionControllerWKWebExtensionControllerDelegateWKWebExtension.ActionWKWebExtension.CommandWKWebExtension.MatchPatternWKWebExtension.MessagePortWKWebExtension.DataRecordWKWebExtension.TabConfigurationWKWebExtension.WindowConfigurationWKWebExtensionController.Configuration
Errors
Immersive environments
WKImmersiveEnvironmentWKImmersiveEnvironmentDelegateallowsImmersiveEnvironmentsimmersiveEnvironmentDelegatedismissImmersiveEnvironment(completionHandler:)