From 91ba3fa69ad0bb2906242fe56dfb70ba24736a63 Mon Sep 17 00:00:00 2001 From: Todd Anglin Date: Fri, 8 Jul 2016 21:32:15 -0500 Subject: [PATCH] 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). --- tns-core-modules/ui/tab-view/tab-view.ios.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tns-core-modules/ui/tab-view/tab-view.ios.ts b/tns-core-modules/ui/tab-view/tab-view.ios.ts index d38eda743..87323b61c 100644 --- a/tns-core-modules/ui/tab-view/tab-view.ios.ts +++ b/tns-core-modules/ui/tab-view/tab-view.ios.ts @@ -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; }