Contents

frame(for:)

Called when the frame of the window is needed.

Declaration

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

Parameters

  • context:

    The context in which the web extension is running.

Discussion

Defaults to CGRectNull if not implemented.