onevcat / onevcat/APNGKit

How to tint a APNG Image?

Open
#108 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
2.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the APNGImageView and APNGImage usage shown in the issue, and compare their behavior with UIImage's rendering mode and tintColor example. The issue does not name a file or test; clarify whether the expected outcome is supported tinting or documentation of a limitation, then verify the chosen behavior with an APNG example.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.