diff --git a/apps/app/ui-tests-app/tab-view/main-page.ts b/apps/app/ui-tests-app/tab-view/main-page.ts index 69d4aa857..50f8dca5d 100644 --- a/apps/app/ui-tests-app/tab-view/main-page.ts +++ b/apps/app/ui-tests-app/tab-view/main-page.ts @@ -27,5 +27,6 @@ export function loadExamples() { examples.set("tab-view-tab-text-font-size", "tab-view/tab-view-tab-text-font-size"); examples.set("tab-view-android-swipe", "tab-view/tab-view-android-swipe"); examples.set("tab-view-icon-title-placement", "tab-view/icon-title-placement"); + examples.set("tab-text-color", "tab-view/tab-text-color"); return examples; } diff --git a/apps/app/ui-tests-app/tab-view/tab-text-color.xml b/apps/app/ui-tests-app/tab-view/tab-text-color.xml new file mode 100644 index 000000000..8f851e60d --- /dev/null +++ b/apps/app/ui-tests-app/tab-view/tab-text-color.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + 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 3201e9a2c..70f8c1f3d 100644 --- a/tns-core-modules/ui/tab-view/tab-view.ios.ts +++ b/tns-core-modules/ui/tab-view/tab-view.ios.ts @@ -576,7 +576,7 @@ function getTitleAttributesForStates(tabView: TabView): TabStates { } const tabSelectedItemTextColor = tabView.style.selectedTabTextColor; - const selectedTextColor = tabItemTextColor instanceof Color ? tabSelectedItemTextColor.ios : null; + const selectedTextColor = tabSelectedItemTextColor instanceof Color ? tabSelectedItemTextColor.ios : null; result.selectedState = { [NSFontAttributeName]: font } if (selectedTextColor) { result.selectedState[UITextAttributeTextColor] = selectedTextColor