1

My app supports alternative icons and I have speicified CFBundleAlternateIcons inside CFBundleIcons. But how can I get current used icon info?

I have tried this How to get the current application icon in ios. But it doesn't work for me.

Anyone helps? Thanks a lot!

jQ Goo
  • 23
  • 5

1 Answers1

2

Get the name of the icon being displayed for the app

If you want to know which icon is being displayed, just read alternateIconName on UIApplication shared instance:

let currentIcon = UIApplication.shared.alternateIconName