From the course: Programming for Non-programmers: iOS 17 and Swift 5

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Adding an app icon

Adding an app icon

- [Narrator] Now let's look at putting an icon on our application. Head over to the Project Navigator, so that's the folder icon all the way on the left. And open up the Asset Catalog, which is called Assets. From there, click on app icon. Then you're asked to supply an image icon. Xcode actually tells you the requirements for the image. It's a 1024-by-1024 pixel square image. When creating iOS icons, the graphic should not have rounded corners. The operating system actually handles the rounded corners, so you should have the full bleed graphic supplied all the way to the edges. So with that, I'm going to double-click on the square. I'm then taken to my desktop, I'll go to Assets and then icon.png, and hit Open, and there's my icon. So you'll see it applied over here, and then up here. And what you can do to test it out is run the app in the simulator. So hit this Run button, making sure that you have an iOS device selected here. So I have iPhone 15 Pro. I'm going to hit Run, and…

Contents