ios - Is it allowed to let the alternate app icon to be dynamic? -


since ios 10.3 has been released, apple added new feature allows change app icon dynamically, using setalternateiconname(_:completionhandler:) method. far, mentioned in method documentation, have mention name(s) of alternate app icon(s) in project .plist file, assigned cfbundleprimaryicon key.

actually, when working static icons (icons have been added directly app main bundle) works expected without problems:

enter image description here

my question is:

is possible -or there workaround- set alternate app icon dynamically (for instance: icons have been downloaded web , saved in app documents directory)?

i don't think possible.

setalternateiconname(_:completionhandler:) api looks icons inside app bundle , cannot changed fetch sandbox.

also, apple reviews app icons have bundled avoiding use of same app icons or icons similar apple apps.

refer: https://www.hackingwithswift.com/example-code/uikit/how-to-change-your-app-icon-dynamically-with-setalternateiconname


Comments