// 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
Post
Replies
Boosts
Views
Activity
Can we track Elliptical Workout Exercise Minutes too in the Apple Watch activity ring?
https://stackoverflow.com/questions/65323810/apple-watch-doesnt-track-elliptical-workout-exercise-minutes