Post

Replies

Boosts

Views

Activity

Reply to Clearing cookies in SFSafariViewController?
 // remove session data       let dataTypes = Set([WKWebsiteDataTypeCookies,                  WKWebsiteDataTypeLocalStorage, WKWebsiteDataTypeSessionStorage,                  WKWebsiteDataTypeWebSQLDatabases, WKWebsiteDataTypeIndexedDBDatabases])       WKWebsiteDataStore.default().removeData(ofTypes: dataTypes, modifiedSince: Date.distantPast, completionHandler: {         let vc = SFSafariViewController(url: targetURL)         self.safariViewController = vc         vc.delegate = self         target.present(vc, animated: true)       }) It may help to clear session data
Jul ’20