jQ Goo
jQ Goo

Reputation: 23

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!

Upvotes: 1

Views: 686

Answers (1)

user9106403
user9106403

Reputation:

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

Upvotes: 2

Related Questions