azzam223 Active Member Licensed User Longtime User Nov 5, 2024 #1 hello how can i remove website memory cache i found this code B4X: struct ContentView: View { var body: some View { WebView(url: URL(string: "https://test.com")!) .edgesIgnoringSafeArea(.all) } } let websiteDataTypes = NSSet(array: [WKWebsiteDataTypeMemoryCache, WKWebsiteDataTypeDiskCache]) let date = Date(timeIntervalSince1970: 0) WKWebsiteDataStore.default().removeData(ofTypes: websiteDataTypes as! Set<String>, modifiedSince: date) { print("Cache cleared") how can i add it in inline object c
hello how can i remove website memory cache i found this code B4X: struct ContentView: View { var body: some View { WebView(url: URL(string: "https://test.com")!) .edgesIgnoringSafeArea(.all) } } let websiteDataTypes = NSSet(array: [WKWebsiteDataTypeMemoryCache, WKWebsiteDataTypeDiskCache]) let date = Date(timeIntervalSince1970: 0) WKWebsiteDataStore.default().removeData(ofTypes: websiteDataTypes as! Set<String>, modifiedSince: date) { print("Cache cleared") how can i add it in inline object c
Erel B4X founder Staff member Licensed User Longtime User Nov 6, 2024 #2 Which problem are you trying to solve? Upvote 0