This is an update to this outdates question: Alternate Icon in iOS 10.3: avoid notification dialog for icon change
func setAppIcon(Type: String) {
if #available(iOS 10.3, *) {
UIApplication.shared.setAlternateIconName(Type)
}
}
With the few lines above it is possible to change the Appicon dynamically, the feature was added with iOS 10.3.
The code above is working fine but every time the app icon changed iOS triggers an alert like this:
So is there a way to get rid of this alert? (I know that apple could reject application for disabling user-information but I'd like to use it just for test purposes)
Any help would be SUPER appreciated, thanks! :-)