Contents

webView(_:doCommandBy:)

Returns whether the receiver performs a command instead of the web view.

Declaration

optional func webView(_ webView: WebView!, doCommandBy selector: Selector!) -> Bool

Parameters

  • webView:

    The web view that the user is editing.

  • selector:

    The command to perform.

Return Value

true if the receiver will perform command; otherwise, false.

Discussion

Implement this method if you want to perform command instead of letting the web view perform command.