Contents

preferredContentMode

The content mode for the web view to use when it loads and renders a webpage.

Declaration

var preferredContentMode: WKWebpagePreferences.ContentMode { get set }

Discussion

The default value of this property is WKWebpagePreferences.ContentMode.recommended. The web view ignores this preference for subframe navigation.

See Also

Setting the preferred content mode