Update iOS TabView to use Automatic rendering mode#2435
Update iOS TabView to use Automatic rendering mode#2435hamorphis merged 1 commit intoNativeScript:masterfrom
Conversation
Change the UIImageRenderingMode for tab icons from "AlwaysOriginal" to "Automatic." This will allow icon images to inherit the `selectedColor` specified for the tabview (eliminating the need to provide two versions of every tab icon).
|
Can one of the admins verify this patch? |
|
@tjvantoll @jlooper Do either you have any additional context on why this |
|
Please sign CLA at http://www.nativescript.org/cla |
|
CLA signature found, happy contributing! |
|
@toddanglin Unless I’m missing something, I don’t think I see Not sure whether changing |
|
@tjvantoll Thanks for finding the old commit! I recall in earlier versions of {N} the tab icon colors did change on iOS, so I wonder if something changed in iOS? Either way, this pull request would simply change the rendering mode to Apps that have already added multiple icons to deal with If this change is too heavy handed, the next best thing (I suppose) would be a new property on the |
|
@toddanglin I merged the pull request. Thank you for this fix. |
|
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. |
Fixes/Implements #1278
Very small change. Does not impact the TabView unit tests.
Changes the UIImageRenderingMode for tab icons from "AlwaysOriginal" to "Automatic." This allows icon images to inherit the
selectedColorspecified for the tabview (eliminating the need to provide two versions of every tab icon).Unclear why this behavior was changed in NativeScript 1.5 (history of tab-view.ios.ts only goes back to May). This change restores behavior of tabview icons to pre-1.5 styling and is a huge time saver for iOS tabview styling.