Created
February 3, 2020 18:58
-
-
Save denisoliveira/bf029745b9616f804ff00b4f4e26225c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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