@@ -4,7 +4,7 @@ import { Font } from "../styling/font";
44import { ios as iosView , ViewBase } from "../core/view" ;
55import {
66 TabViewBase , TabViewItemBase , itemsProperty , selectedIndexProperty ,
7- tabTextColorProperty , tabBackgroundColorProperty , selectedTabTextColorProperty , iosIconRenderingModeProperty ,
7+ tabTextColorProperty , tabTextFontSizeProperty , tabBackgroundColorProperty , selectedTabTextColorProperty , iosIconRenderingModeProperty ,
88 View , fontInternalProperty , layout , traceEnabled , traceWrite , traceCategories , Color
99} from "./tab-view-common"
1010import { textTransformProperty , TextTransform , getTransformedText } from "../text-base" ;
@@ -448,6 +448,13 @@ export class TabView extends TabViewBase {
448448 selectedIndexProperty . coerce ( this ) ;
449449 }
450450
451+ [ tabTextFontSizeProperty . getDefault ] ( ) : { nativeSize : number } {
452+ return null ;
453+ }
454+ [ tabTextFontSizeProperty . setNative ] ( value : number | { nativeSize : number } ) {
455+ this . _updateIOSTabBarColorsAndFonts ( ) ;
456+ }
457+
451458 [ tabTextColorProperty . getDefault ] ( ) : UIColor {
452459 return null ;
453460 }
@@ -504,7 +511,8 @@ interface TabStates {
504511function getTitleAttributesForStates ( tabView : TabView ) : TabStates {
505512 const result : TabStates = { } ;
506513
507- const font = tabView . style . fontInternal . getUIFont ( UIFont . systemFontOfSize ( 10 ) ) ;
514+ const tabItemFontSize = tabView . style . tabTextFontSize ;
515+ const font : UIFont = tabView . style . fontInternal . getUIFont ( UIFont . systemFontOfSize ( tabItemFontSize ) ) ;
508516 const tabItemTextColor = tabView . style . tabTextColor ;
509517 const textColor = tabItemTextColor instanceof Color ? tabItemTextColor . ios : null ;
510518 result . normalState = { [ NSFontAttributeName ] : font }
0 commit comments