-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
RemoteImageView rendering mode #131
Comments
You could configure There are other public var imageTransform: (UIImage?) -> UIImage? = { $0 } image = imageTransform(imageResource?.typedContent(ifNone: placeholderImage)) …and then you’d do: someImageView.imageTransform = { $0?.withRenderingMode(.alwaysTemplate) } How would you feel about that? |
Indeed that would be very convenient ! |
Good, let’s do it. I’m keeping new functionality frozen until the imminent 1.0 release is out the door. (Very soon!) Once it’s done, this easy fix can go in the first follow-up release. |
I've tested this in my project this is perfect |
1.0 is out. Feel free to submit a PR for this. |
Hi i'm playing with RemoteImageView and as it get its image from the net choosing the rendering mode can be useful. I've added a quick fix for it and it works :
in class RemoteImageView add :
and in updateViews() replace :
by :
This is a quick draw, there may be a better way to do it ?
The text was updated successfully, but these errors were encountered: