Instance Method

addUserScript(_:)

Adds a user script.

Declaration

func addUserScript(_ userScript: WKUserScript)

Parameters

userScript

The user script to add.

See Also

Adding and Removing User Scripts

func removeAllUserScripts()

Removes all associated user scripts.

func removeScriptMessageHandler(forName: String)

Removes a script message handler.

var userScripts: [WKUserScript]

The user scripts associated with the user content controller.