Contents

screenFrame(for:)

Called when the screen frame containing the window is needed.

Declaration

optional func screenFrame(for context: WKWebExtensionContext) -> CGRect

Parameters

  • context:

    The context associated with the running web extension.

Discussion

Defaults to CGRectNull if not implemented.