Contents

WKPreferences

An object that encapsulates the standard behaviors to apply to websites.

Declaration

@MainActor class WKPreferences

Overview

Use a WKPreferences object to specify the preferences for your website, including the minimum font size, the JavaScript behavior, and the behavior for handling fraudulent websites. Create this object and assign it to the preferences property of the WKWebViewConfiguration object you use to create your web view.

Topics

Setting Rendering Preferences

Setting Behavior Preferences

Setting Java and JavaScript Preferences

Setting Fraud Warning Preferences

Deprecated

Initializers

Instance Properties

See Also

Web view configuration