Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kikeenrique/c54cff2cd4e4c15524845e6b31ce17c9 to your computer and use it in GitHub Desktop.
Save kikeenrique/c54cff2cd4e4c15524845e6b31ce17c9 to your computer and use it in GitHub Desktop.
# https://rambo.codes/ios/quick-tip/2019/12/09/clearing-your-apps-launch-screen-cache-on-ios.html
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