@@ -24,7 +24,7 @@ export * from "./tabs-common";
2424const majorVersion = iosUtils . MajorVersion ;
2525
2626// Equivalent to dispatch_async(dispatch_get_main_queue(...)) call
27- const invokeOnRunLoop = ( function ( ) {
27+ const invokeOnRunLoop = ( function ( ) {
2828 const runloop = CFRunLoopGetMain ( ) ;
2929
3030 return ( action : ( ) => any ) => {
@@ -100,7 +100,7 @@ class UIPageViewControllerImpl extends UIPageViewController {
100100
101101 tabBar . delegate = this . tabBarDelegate = MDCTabBarDelegateImpl . initWithOwner ( new WeakRef ( owner ) ) ;
102102
103- if ( majorVersion <= 12 ) {
103+ if ( majorVersion <= 12 || ! UIColor . labelColor ) {
104104 tabBar . tintColor = UIColor . blueColor ;
105105 tabBar . barTintColor = UIColor . whiteColor ;
106106 tabBar . setTitleColorForState ( UIColor . blackColor , MDCTabBarItemState . Normal ) ;
@@ -216,7 +216,9 @@ class UIPageViewControllerImpl extends UIPageViewController {
216216
217217 if ( majorVersion >= 13 ) {
218218 const owner = this . _owner . get ( ) ;
219- if ( owner && this . traitCollection . hasDifferentColorAppearanceComparedToTraitCollection ( previousTraitCollection ) ) {
219+ if ( owner &&
220+ this . traitCollection . hasDifferentColorAppearanceComparedToTraitCollection &&
221+ this . traitCollection . hasDifferentColorAppearanceComparedToTraitCollection ( previousTraitCollection ) ) {
220222 owner . notify ( { eventName : iosView . traitCollectionColorAppearanceChangedEvent , object : owner } ) ;
221223 }
222224 }
@@ -1087,7 +1089,7 @@ export class Tabs extends TabsBase {
10871089 // HACK: UIPageViewController fix; see https://stackoverflow.com/a/17330606
10881090 invokeOnRunLoop ( ( ) => this . viewController . setViewControllersDirectionAnimatedCompletion ( controllers , navigationDirection , false , null ) ) ;
10891091 }
1090-
1092+
10911093 this . _canSelectItem = true ;
10921094 this . _setCanBeLoaded ( value ) ;
10931095 this . _loadUnloadTabItems ( value ) ;
0 commit comments