Contents

WKContentWorldConfiguration

Declaration

@MainActor class WKContentWorldConfiguration

Overview

A WKContentWorldConfiguration object allows you to specify custom behavior for a WKContentWorld instance.

WKContentWorldConfiguration allows applications to create WKContentWorld instances which have extra JavaScript capabilities exposed to script in their environment. It does not change any default WebKit behaviors, nor change anything that web page JavaScript can do. Only application JavaScript run in the created WKContentWorld will have different capabilities.

For example:

  • If your scripts help provide autofill capabilities, you would want to set autofillEnabled to YES.

Topics

Initializers

Instance Properties