Contents

size(for:)

Called when the size of the tab is needed.

Declaration

optional func size(for context: WKWebExtensionContext) -> CGSize

Parameters

  • context:

    The context in which the web extension is running.

Discussion

Defaults to size of the tab’s web view if not implemented.