Swift Programming
How to Programmatically Change your App Icon — iOS Swift Guide
4 steps to customize your App Icon
Apple introduced in iOS 10.3, a new feature that make possible for developers to offer App Icon customization to their users with predefined additional icons.
Here are the 4 steps to add this cool feature to your App. Let’s get started.
Step 1: Design your App Icons
Design your alternative App Icons and export them in two sizes:
- 120px (60px @2x)
- 180px (60px @3x)
Add the icons to your project under a new directory App Icons. Note that the alternate icons files must to be in the Project directory, not in the Assets directory.
Step 2: Register your new Icons in the Info.plist file
First, add a new CFBundleIcons
entry (Icon files (iOS 5)), then add another entry CFBundleAlternateIcons
.
For each alternate icon, add a new entry in the infos.plist file, under CFBundleAlternateIcons. The…