I have 3 icons:
Primary - the default icon
Alt1
Alt2
Where Alt1 & Alt2 are alternate app icons.
UIApplication.shared.setAlternateIconName(newValue.rawValue) { (error) in
// Handle error
}
I can set the alternate icon just fine. But, I am unable to switch from one of the Alternate icons back to the primary icon.
How can I do this?
CodePudding user response:
Specify nil if you want to display the app’s primary icon, which you declare using the CFBundlePrimaryIcon key.
try await setAlternateIconName(nil)