iOS Using Image Aseets App Icon using Image Assets

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Whenever we create a new project in Xcode for our new app, it gives us various in-built classes, targets, tests, plist file, etc. Similarly it also gives us as Assets.xcassets file, which manages all the image assets in our project.

This is how this file looks like in file navigator:

enter image description here

If we click it, it'll look like this:

enter image description here

As I said, AppIcon asset is already created for us.
We just have to drag and drop respective image on each empty square block. Each black will tell us what size that image should be, it's written just below it.
After dragging and dropping all the images in all the squares, it'll look like this:

enter image description here

We can change the devices setting also for icon assets in Utilities -> Attributes Inspector as:

enter image description here

Once we finished this, just run an app and we'll be having nice icon to app as this:

enter image description here

It is there by default, but if it's not then make sure this settings is as in Target->General settings:

enter image description here



Got any iOS Question?