swift 5 How to set icon App in Switch Screen

928 views Asked by At

How to set the app icon in the app switcher screen?

enter image description here

2

There are 2 answers

0
Evgeny Karkan On BEST ANSWER

You have to provide the required App Icon assets. Please refer to HIG documentation:

Every app must supply small icons for use on the Home screen and throughout the system once your app is installed, as well as a larger icon for display in the App Store.

So in your Images.assets just put all required app icon assets and that's it.

0
Harsh Kadiya On

That being said, this isn't a problem you can fix. This is a bug in Apple's code not yours.

This will take effect after the second launch!

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