First we need access to the IconManager, you may choose dependency injection or directly create an instance where you need it.public class IconManager Consumer implementation of the new IconManager In this file, we will create a class called IconManager that will contain three things - a constant, an enum, and a function. Next, we are going to create another Swift file called IconManager. Important: Please ensure that these icons do not go inside the Asset catalogue. The example project is called "AlternativeIcons", you'd create the folder "AlternativeIcons" within the structure of your Xcode project. Please ensure to use the and naming convention that will allow iOS to automatically select the correct icon with the best resolution for the user’s device. Each image should be available in both 2x (120 x120) and 3x (180 x 180) sizes, 1x size is optional. In Xcode, I have created a new group called “ AlternativeIcons” to organize my icons. I like to use Figma to design mine, and there is an extension called “App Icon Toolkit” which exports your icon with the correct sizes as well as naming convention. To get started, you will first need some icons. The ability to change app icons has been present since iOS 10.3, so please make sure you have a recent build of Xcode. Having alternative icon options is a great way to bring some personality to your app, and it’s also fairly simple to set up. App icons are the first point of engagement for your users, an effective tool to catch their attention, and keep them away from exploring other potential options.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |