I ended up going with a solution similar to the "pre iOS 13" method here: https://sarunw.com/posts/how-to-change-uiimage-color-in-swift/
extension UIImage {
func withColor(_ color: UIColor) -> UIImage? {
UIGraphicsBeginImageContextWithOptions(size, false, UIScreen.main.scale)
let drawRect = CGRect(x: 0, y: 0, width: size.width, height: size.height)
color.setFill()
UIRectFill(drawRect)
draw(in: drawRect, blendMode: .destinationIn, alpha: 1)
let tintedImage = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
return tintedImage
}
}
Post
Replies
Boosts
Views
Activity
iOS 16 has shipped and this issue remains. Anyone else run into this?
Hi Zsombor!
I’m assuming you got this working by now since you asked so long ago. I’m currently running into a similar issue with a subscription that worked in test flight but I am getting an invalid product ID for the App Store version that is currently pending developer release. I’m curious If and how did you get it working before releasing the app live? Thanks!
Hi, did you ever figure out the answer to your questions? I'm curious about the same things. Thanks!
Hi - I'm wondering if found out the answer to this question?