Post

Replies

Boosts

Views

Activity

Reply to onContinueUserActivity not Called with Handoff & SwiftUI
for people come across this in the future, swiftui has newly implemented approach for receiving url from universal links(or, deep links) @main struct SwiftUIAppLifeCycleApp: App { var body: some Scene { WindowGroup { ContentView() .onOpenURL { url in print("Received URL: \(url)") } } } } something like this. https://peterfriese.dev/posts/ultimate-guide-to-swiftui2-application-lifecycle/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22
Reply to How to delete WKWebview's Cache in iOS8?
let websiteDataTypes = WKWebsiteDataStore.allWebsiteDataTypes() let date = NSDate(timeIntervalSince1970: 0) WKWebsiteDataStore.defaultDataStore().removeDataOfTypes(websiteDataTypes, modifiedSince: date, completionHandler: { #if DEBUG print("remove all data in iOS9 later") #endif }) haven't tested yet, just saw this answer, in case someone in the future needs it https://gist.github.com/dakeshi/6915b6681cbc29327dcc9b27cef263b8#:~:text=Use%20an%20default%20WKWebView%20save%20all%20caches%2C%20cookies,method%20when%20the%20app%20receives%20the%20memory%20warning.
Topic: Programming Languages SubTopic: General Tags:
May ’22