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

fix(image): apply tintColor correctly on iOS #5546

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

manoldonev
Copy link
Contributor

NOTE: Cherry-picked from #5266 due to CI infrastructure issues with the original PR.

Fixes #4778

Previously image was reset on every second call to setTintColor, which led to some weird behavior on iOS. Especially since setTintColor could be called many times, when set through property or style.

It now only resets image to non-template when tintColor is changed to a non-color value (e.g. removed).

NOTE: Fix for Android Image.tintColor here: NativeScript/tns-core-modules-widgets#110

only reset image to non-template when tintColor is changed to a non-color (removed)
@manoldonev
Copy link
Contributor Author

👍 for PR

@manoldonev manoldonev merged commit 75ee84c into master Mar 15, 2018
@ghost ghost removed the in progress label Mar 15, 2018
@manoldonev manoldonev deleted the ddfreiling/ios-image-tintcolor branch March 15, 2018 16:41
@ddfreiling
Copy link
Contributor

@manoldonev Thanks for getting this merged ❤️

@lock
Copy link

lock bot commented Aug 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using tint-color on images not working properly
3 participants