-
Notifications
You must be signed in to change notification settings - Fork 229
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
[Color] AnimatedImage tinting not getting applied #338
Comments
Seems you want that UIKit imageView to apply tintColor. I can have a check whether the |
If you could let me know if it supports tinting it would be great. In terms of implementation, I went based on what I found in the documentation that was provided which surprised me that it doesn't work. Scroll to Animated Image |
This weekend I'll have a test and check. Currently SDAnimatedImage use custom rendering on animated image (which means, we override I guess this cause the root issue. We need to implements each special UIImageView rendering (like |
@Boowman Can you have a test on |
@dreampiggy I tested |
Can you provide a real demo with these 2 use case ? It seems both of them contains issue.
|
Is this what you want ? But SVG is not animtable, so it's a little strange in your demo. I use a |
So if not |
WebImage can support SVG. It will draw bitmap version (fixed size) instead of See why I introduce this code: And, you can run SwiftUI Demo in our repo to check, which shows 2 URL of SVGs |
SVG is not official supported by Apple's ImageIO coder. It's not a normal bitmap image format You need that https://github.com/SDWebImage/SDWebImageSVGCoder |
Oh yes, i forgot to add this in the sample project. |
I will make the demo and post it here, sorry it's been taking so long. |
I’m encountering the same problem as AnimatedImage doesn’t render the foregroundStyle, tint, or accent colour. |
Hello,
I am trying to apply a tint to an
svg
image but it seems no matter what I try none of them work.I have already tried applying each modifier individually but I just wanted to show what I have tried.
Device
The text was updated successfully, but these errors were encountered: