> ## Content Index
> Fetch the complete content index at: https://developerinsider.co/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to clean the iOS app launch screen cache?
- URL: https://developerinsider.co/how-to-clean-the-ios-app-launch-screen-cache/
- Published: 2020-05-31T04:58:11.000Z
- Updated: 2020-12-05T11:08:28.000Z
- Author: Vineet Choudhary
- Tags: Tips, Xcode, iOS, Launch Screen, Cache

You might have noticed when you tried to change something in the launch screen on the iOS application, you still see the old launch screen. Because the system caches launch images and it's not cleared even after deleting the application.

For cleaning the launch screen, all you have to do to completely clear your app’s launch screen cache is run this code inside your app:

```swift
import UIKit

public extension UIApplication {
    func clearLaunchScreenCache() {
        #if DEBUG
        do {
            let launchScreenPath = "\(NSHomeDirectory())/Library/SplashBoard"
            try FileManager.default.removeItem(atPath: launchScreenPath)
        } catch {
            print("Failed to delete launch screen cache - \(error)")
        }
        #endif
    }
}

```

To use this, add the following lines in the app's `didFinishLaunchingWithOptions` delegate method:

```swift
UIApplication.shared.clearLaunchScreenCache()

```

Checkout sample project on [Github](https://github.com/developerinsider/iOSClearAppLaunchScreenCacheDemo?ref=developerinsider.co).