Skip to content

Commit 91ba3fa

Browse files
author
Todd Anglin
authored
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).
1 parent 42b267b commit 91ba3fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tns-core-modules/ui/tab-view/tab-view.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ export class TabView extends common.TabView {
327327

328328
var is = imageSource.fromFileOrResource(iconSource);
329329
if (is && is.ios) {
330-
var originalRenderedImage = is.ios.imageWithRenderingMode(UIImageRenderingMode.UIImageRenderingModeAlwaysOriginal);
330+
var originalRenderedImage = is.ios.imageWithRenderingMode(UIImageRenderingMode.UIImageRenderingModeAutomatic);
331331
this._iconsCache[iconSource] = originalRenderedImage;
332332
image = originalRenderedImage;
333333
}

0 commit comments

Comments
 (0)