
If your head is spinning a little, that’s OK: it really is far too complex and I’m amazed this is new API. To be quite clear, CFBundleIcons is a dictionary containing the key CFBundleAlternateIcons, which is a dictionary containing the key YourImageName, which is another dictionary containing the icon files and gloss effect settings. Each icon name is another dictionary, which contains the same two keys as CFBundlePrimaryIcon: the CFBundleIconFiles array and the UIPrerenderedIcon boolean.This doesn’t need to be their filename, just however you want to reference each icon in your code. The alternate icons key is also a dictionary, but this time the keys of its children are the names of images you want to use.

Yes, that latter setting has been dead since iOS 7 but it still loiters around.
#XAMARIN APPICON JSON CODE#
The actual code to change your app’s icon is trivial, but first there’s some setup work because you must declare all possible icons in your ist file. It also isn’t quite as powerful as you might hope – you can’t recreate the moving hands of the Clock app, for example.

IOS gives developers the ability to change their app’s icon programmatically, although it takes a little work to set up.

#XAMARIN APPICON JSON HOW TO#
How to change your app icon dynamically with setAlternateIconName()
