Contents

webViewConfiguration

The web view configuration to use for web views that load pages from this extension.

Declaration

@NSCopying var webViewConfiguration: WKWebViewConfiguration? { get }

Discussion

Returns a customized copy of the configuration, originally set in the web extension controller configuration, for this extension.

The app must use this configuration when initializing web views intended to navigate to a URL originating from this extension’s base URL.

The app must also swap web views in tabs when navigating to and from web extension URLs. This property returns nil if the context isn’t associated with a web extension controller. The returned configuration copy can be customized prior to web view initialization.