I am rendering a png image with an alpha channel from XCAssets in a UIImageView.
The rendering occurs as it should in iOS 16 / Xcode 14, but the image is distorted in iOS 17 beta / Xcode 15 beta. I am not sure why, but the distortion is very apparent.
I have attached below the original PNG, as well a screenshot comparing the incorrect iOS 17 / Xcode 15 beta behavior vs the iOS 16 / Xcode 14 desired behavior.
Comparision:
Original image:
我发现只有从 UIImage(named: "xxxx") 加载的有该问题,使用 UIImage(contentsOfFIle: "***") 加载时是没问题的,一定是苹果内部默认处理了什么