Learn how to create iOS Alternate App Icons with SwiftUI for iPhones and iPads - Part 8
? LIMITED TIME OFFER - SAVE 37% Practical iOS and macOS app development tutorials with SwiftUI in 4K https://credo.academy In this #SwiftUI tutorial, we’re going to develop a new feature. The ability to change the app’s icon programmatically has been around for quite a few years. This hands-on iPhone feature allows users to switch between a predefined set of alternate icons. Please keep in mind that the Todo's application icon can only be changed at the user’s request and the system always provides the user with confirmation of such a change. Our goals in this tutorial: 1. How to create a predefined set of alternate icons using the Property List Editor. 2. Then we’ll learn how to change the app icons programmatically 3. Finally, we’ll leverage SwiftUI Pickers to allow users to choose their favorite icon from a list. We’re not going to add graphic files of the alternate icons in the assets library. It’s mandatory to create a separate group that holds all of the alternate icons. Having said that, let’s get started with creating a new group for the icons in the main project folder. Give it the name: **Icons** After that navigate to the Desktop and open the Resources folder. In the todos app resources folder, we will find a dedicated folder for the icons. Open this folder. Now let’s take a short look at the graphics. As you can see there are three main colors like blue, pink and green. Besides that, every main color has 3 color variants. For example, light, dark, and primary. As you can notice, each icon has a descriptive name. These file names play a quite important role in developing the alternate icons feature. All right! Now select all of these graphic files and drag and drop them into the recently created Icons folder in the Project Navigator panel as I show you. After that, a new drop-down window will be shown. Make sure that the icons are copied if needed and the target project is the Todo app and the checkmark is selected. Quickly go through some of the icons in the folder. So far so good. This SwiftUI tutorial is part of the best online SwiftUI Masterclass course. #Xcode #iOSDevelopment
? LIMITED TIME OFFER - SAVE 37% Practical iOS and macOS app development tutorials with SwiftUI in 4K https://credo.academy In this #SwiftUI tutorial, we’re going to develop a new feature. The ability to change the app’s icon programmatically has been around for quite a few years. This hands-on iPhone feature allows users to switch between a predefined set of alternate icons. Please keep in mind that the Todo's application icon can only be changed at the user’s request and the system always provides the user with confirmation of such a change. Our goals in this tutorial: 1. How to create a predefined set of alternate icons using the Property List Editor. 2. Then we’ll learn how to change the app icons programmatically 3. Finally, we’ll leverage SwiftUI Pickers to allow users to choose their favorite icon from a list. We’re not going to add graphic files of the alternate icons in the assets library. It’s mandatory to create a separate group that holds all of the alternate icons. Having said that, let’s get started with creating a new group for the icons in the main project folder. Give it the name: **Icons** After that navigate to the Desktop and open the Resources folder. In the todos app resources folder, we will find a dedicated folder for the icons. Open this folder. Now let’s take a short look at the graphics. As you can see there are three main colors like blue, pink and green. Besides that, every main color has 3 color variants. For example, light, dark, and primary. As you can notice, each icon has a descriptive name. These file names play a quite important role in developing the alternate icons feature. All right! Now select all of these graphic files and drag and drop them into the recently created Icons folder in the Project Navigator panel as I show you. After that, a new drop-down window will be shown. Make sure that the icons are copied if needed and the target project is the Todo app and the checkmark is selected. Quickly go through some of the icons in the folder. So far so good. This SwiftUI tutorial is part of the best online SwiftUI Masterclass course. #Xcode #iOSDevelopment