Q:

How to get IOS current alternate icon name?

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!

A:

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

