Skip to content

Instantly share code, notes, and snippets.

@denisoliveira
Created February 3, 2020 18:58
Show Gist options
  • Save denisoliveira/bf029745b9616f804ff00b4f4e26225c to your computer and use it in GitHub Desktop.
Save denisoliveira/bf029745b9616f804ff00b4f4e26225c to your computer and use it in GitHub Desktop.
// By Gui Rambo
// https://rambo.codes/ios/quick-tip/2019/12/09/clearing-your-apps-launch-screen-cache-on-ios.html
// Note: Tested on iOS 13 only
import UIKit
public extension UIApplication {
func clearLaunchScreenCache() {
do {
try FileManager.default.removeItem(atPath: NSHomeDirectory()+"/Library/SplashBoard")
} catch {
print("Failed to delete launch screen cache: \(error)")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment