A collection of properties used to initialize a web view.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
WKWebViewConfiguration class, you can determine how soon a webpage is rendered, how media playback is handled, the granularity of items that the user can select, and many other options.
WKWebViewConfiguration is only used when a web view is first initialized. You cannot use this class to change the web view's configuration after it has been created.
Configuring the New Web View’s Properties
The preference object to be used by the web view.
The process pool from which to obtain the view’s Web Content process.
Determining Webpage Scalability
Setting Rendering Preferences
Setting Media Playback Preferences
A Boolean value indicating whether HTML5 videos play inline or use the native full-screen controller.
A Boolean value indicating whether HTML5 videos require the user to start playing them (
YES) or whether the videos can be played automatically (
Setting Selection Granularity
The level of granularity with which the user can interactively select content in the web view.
Selecting User Interface Directionality
Adding Handlers for New URL Schemes
The methods of the
WKNavigationDelegate protocol help you implement custom behaviors that are triggered during a web view's process of accepting, loading, and completing a navigation request.
WKProcessPool object represents a pool of Web Content processes.
WKWindowFeatures object specifies optional attributes for the containing window when a new web view is requested.
An object that displays interactive web content, such as for an in-app browser.
WKPreferences object encapsulates the preference settings for a web view.
WKUIDelegate class provides methods for presenting native user interface elements on behalf of a webpage.