Skip to content

Instantly share code, notes, and snippets.

@fitomad
Created June 13, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/2da3a84a6a27a9cf871d0468661d0791 to your computer and use it in GitHub Desktop.
Save fitomad/2da3a84a6a27a9cf871d0468661d0791 to your computer and use it in GitHub Desktop.
...
// Donde la variable `name` es el nombre del icono alternativo
// sin al sufijo `@2x` o `@3x` ni la extensión `.png`
UIApplication.shared.setAlternateIconName(name) { error in
if let error = error
{
// Algo ha fallado :-(
print("App icon change failed (\(name)) to due to \(error.localizedDescription)")
}
else
{
// Todo ha ido bien :-)
...
}
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment