APNGKit icon indicating copy to clipboard operation
APNGKit copied to clipboard

How to tint a APNG Image?

Open StefaniOSApps opened this issue 4 years ago • 1 comments

I would like to tint a Image like

let imageView = UIImageView()
imageView.image = UIImage(named: "custom-icon")?.withRenderingMode(.alwaysTemplate)
imageView.tintColor = .red

How can I do that with APNG?

let imageView = APNGImageView()
imageView.image = APNGImage(named: "custom-apng-icon", progressive: true)
imageView.tintColor = .red

..but it does not work

StefaniOSApps avatar Apr 07 '21 23:04 StefaniOSApps

APNGKit v2 was just released but it still renders the content directly on layer, so this is not supported now. But it should be easy enough to support and I think it is quite useful.

Added to the to-do list for v2. Stay tuned.

onevcat avatar Nov 02 '21 08:11 onevcat