Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to tint a APNG Image? #108

Open
StefaniOSApps opened this issue Apr 7, 2021 · 1 comment
Open

How to tint a APNG Image? #108

StefaniOSApps opened this issue Apr 7, 2021 · 1 comment

Comments

@StefaniOSApps
Copy link

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

@onevcat
Copy link
Owner

onevcat commented Nov 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants