HandyUIKit icon indicating copy to clipboard operation
HandyUIKit copied to clipboard

Add a method to clear launch screen cache

Open fredpi opened this issue 4 years ago • 0 comments

I propose to add the following extension to UIApplication, taken from this article:

public extension UIApplication {
    func clearLaunchScreenCache() {
        do {
            try FileManager.default.removeItem(atPath: NSHomeDirectory()+"/Library/SplashBoard")
        } catch {
            print("Failed to delete launch screen cache: \(error)")
        }
    }
}

While this extension is only appropriate in debug environments, I think it's still a good fit for HandyUIKit...

fredpi avatar Dec 09 '19 20:12 fredpi