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
import UIKit | |
/// Changes the app's alternate icon. | |
/// - Parameter iconName: The name of the alternate icon. Pass `nil` to reset to the default icon. | |
func setAlternateIcon(_ iconName: String?) { | |
guard UIApplication.shared.supportsAlternateIcons else { | |
print("Alternate app icons are not supported on this device.") | |
return | |
} |