App icon assets don't show in iOS 18

I used to be able to display all app icon assets in the UI using UIImage(named: String)

However, it seems this method has been deprecated in Xcode 16 and the iOS 18.

How can I display app icon assets in the UI now, without duplicating the assets?

App icon assets don't show in iOS 18
 
 
Q