Skip to content

Add clean up instructions to prevent memory leaks #1

@ArkadiYoskovitz

Description

@ArkadiYoskovitz

You should add the following in the view controllers deinit

deinit {
webView.configuration.userContentController.removeScriptMessageHandlerForName("buttonClicked")
webView.configuration.userContentController.removeAllUserScripts()
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions