Show a web page

Showing a webpage from your iOS application should be done the most secure way by using SFSafariViewController. You should only use WKWebView when you want to build a custom browser.

Since SFSafariViewController is running on a separate process, anything the user does on the web does not affect your application.

    import SafariServices

    func chatButtonTapped() {
        guard let url = URL(string: "https://tawk.to/chat/XXX/default") else { return }
        let chatViewController = SFSafariViewController(url: url)
        present(chatViewController, animated: true, completion: nil)
    }