Update iOS TabView to use Automatic rendering mode

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).
This commit is contained in:
Todd Anglin
2016-07-08 21:32:15 -05:00
committed by GitHub
parent 42b267bccc
commit 91ba3fa69a

View File

@ -327,7 +327,7 @@ export class TabView extends common.TabView {
var is = imageSource.fromFileOrResource(iconSource);
if (is && is.ios) {
var originalRenderedImage = is.ios.imageWithRenderingMode(UIImageRenderingMode.UIImageRenderingModeAlwaysOriginal);
var originalRenderedImage = is.ios.imageWithRenderingMode(UIImageRenderingMode.UIImageRenderingModeAutomatic);
this._iconsCache[iconSource] = originalRenderedImage;
image = originalRenderedImage;
}