Does setAlternateIconName work in mac Catalyst?

I'm trying to change app icon on Dock in macOS from my app. But couldn't get to work. The setAlternateIconName works fine in iOS simulator, but when I run in on my mac (Catalyst) I got this error: The requested operation couldn’t be completed because the feature is not supported.

Apple Doc - https://developer.apple.com/documentation/uikit/uiapplication/2806818-setalternateiconname

Thank you

Post not yet marked as solved Up vote post of Boonyawat Down vote post of Boonyawat
698 views