mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
清除浏览器缓存
This commit is contained in:
parent
4a34c0a8d4
commit
d042efc474
@ -8,19 +8,17 @@
|
||||
|
||||
import SafariServices
|
||||
import UIKit
|
||||
|
||||
class BarkSFSafariViewController: SFSafariViewController {
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
// Do any additional setup after loading the view.
|
||||
}
|
||||
|
||||
override func didReceiveMemoryWarning() {
|
||||
super.didReceiveMemoryWarning()
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
override var preferredStatusBarStyle: UIStatusBarStyle {
|
||||
return .default
|
||||
}
|
||||
|
||||
deinit {
|
||||
if #available(iOS 16.0, *) {
|
||||
Task {
|
||||
await SFSafariViewController.DataStore.default.clearWebsiteData()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user