LaunchImage using Image Assets

suggest change

A launch screen appears while the app is launching and lasts until the first screen of the app appears.

Learn more about Launch Screen and guidelines here.

Similar to AppIcons we have to mention in project settings about using image assets for launch screen image.

By default project settings are like:

We have to change to like this:

Once we change these settings, Xcode asks us to migrate to assets and creates a LaunchImage set in the asset catalog automatically, as shown here:

If not created, we can manually create one by clicking + button at the bottom as:

After this, according to our requirement we can change the empty boxes to devices which we support using attributes inspector by checking/unchecking boxes.

I filled these images for iPhones of 4” screen to 5.5” and for all iPads as:

Here are sizes of all launch images:

Retina HD 5.5" iPhone Portrait - iPhone (6, 6S, 7)Plus - 1242x2208px
Retina HD 4.7" iPhone Portrait - iPhone 6, 6S, 7 - 750x1334px
Retina HD 5.5" iPhone Landscape - iPhone (6, 6S, 7)Plus - 2208x1242px
2x iPhone Portrait - (3.5") iPhone 4S - 640x960px
Retina 4 iPhone Portrait - (4") iPhone 5, 5S, 5C, iPod Touch, SE - 640x1136px
2x iPad Portrait - All Retina iPads - 1536x2048px
2x iPad Landscape - All Retina iPads - 2048x1536px

Notes:

1 non-retina iPads: I left blank 1x iPad Portrait and Landscape because non-retina iPads will use 2x launch images by scaling

2 12.9” iPad Pro: there is no square for this iPad because this iPad will also use 2x iPad images by scaling them

3 Retina HD 5.5”: 1920x1080px and 1080x1920px are not the portrait and landscape sizes in the table above, and they are not reliable iPad sizes. A size other than the one listed for that slot makes Xcode warn, and the launch image is not shown.

4 SplitView: as we are using LaunchImage Asset instead of LaunchScreen XIB, our app will not support SplitView on iPads and landscape 5.5” iPhones

5 Reinstall: if our app is already installed on device and we try to run with these newly added launch image assets, then sometimes device will not show launch images while launching app. In this case just delete app from device, clean+build project and run it, it’ll show new launch images

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents