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
From the course: Programming for Non-programmers: iOS 17 and Swift 5
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Storing the saved number5m 38s
-
(Locked)
Showing the total when the equals button is tapped3m 40s
-
(Locked)
Formatting the total number3m 3s
-
(Locked)
Replacing the mode buttons with symbols2m 50s
-
(Locked)
Adding an app icon1m 20s
-
(Locked)
Challenge: Clear button32s
-
(Locked)
Solution: Clear button1m 40s
-
(Locked)
-