Last active
December 25, 2025 03:25
-
-
Save Bonney/79e28be05fcb19e2f9e1b418244c66e4 to your computer and use it in GitHub Desktop.
Changing an app's icon in iOS 10.3 without showing the system alert dialog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Change the app icon without showing the system alert | |
| // The trick is to call setAlternateIconName(_:completionHandler:), then | |
| // immediately show (then immediately hide) a temp ViewController. | |
| // This seems to interrupt the system dialog box, which never shows. | |
| if UIApplication.shared.supportsAlternateIcons { | |
| UIApplication.shared.setAlternateIconName("nameOfAlternateIcon") | |
| let tempViewController = UIViewController() | |
| self.present(tempViewController, animated: false, completion: { | |
| tempViewController.dismiss(animated: false, completion: nil) | |
| }) | |
| } |
Author
Well, it was a hacky method from 4 years ago..
Not working actually.
This is the answer to your question
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not working actually.