1
1
import { IOSActionItemSettings , ActionItem as ActionItemDefinition } from '.' ;
2
- import { ActionItemBase , ActionBarBase , isVisible , flatProperty , iosIconRenderingModeProperty , traceMissingIcon } from './action-bar-common' ;
2
+ import { ActionItemBase , ActionBarBase , isVisible , flatProperty , iosIconRenderingModeProperty , traceMissingIcon , iosShadowProperty , iosLargeTitleProperty } from './action-bar-common' ;
3
3
import { View } from '../core/view' ;
4
4
import { Color } from '../../color' ;
5
5
import { ios as iosBackground } from '../styling/background' ;
@@ -8,6 +8,7 @@ import { colorProperty, backgroundInternalProperty, backgroundColorProperty, bac
8
8
import { ios as iosViewUtils } from '../utils' ;
9
9
import { ImageSource } from '../../image-source' ;
10
10
import { layout , iOSNativeHelper , isFontIconURI } from '../../utils' ;
11
+ import { SDK_VERSION } from '../../utils/constants' ;
11
12
import { accessibilityHintProperty , accessibilityLabelProperty , accessibilityLanguageProperty , accessibilityValueProperty } from '../../accessibility/accessibility-properties' ;
12
13
13
14
export * from './action-bar-common' ;
@@ -533,7 +534,7 @@ export class ActionBar extends ActionBarBase {
533
534
if ( navBar . standardAppearance ) {
534
535
// Not flat and never been set do nothing.
535
536
const appearance = navBar . standardAppearance ;
536
- appearance . shadowColor = UINavigationBarAppearance . new ( ) . shadowColor ;
537
+ appearance . shadowColor = this . iosShadow ? UINavigationBarAppearance . new ( ) . shadowColor : UIColor . clearColor ;
537
538
this . _updateAppearance ( navBar , appearance ) ;
538
539
}
539
540
} else {
@@ -644,9 +645,8 @@ export class ActionBar extends ActionBarBase {
644
645
[ backgroundInternalProperty . getDefault ] ( ) : UIColor {
645
646
return null ;
646
647
}
647
- [ backgroundInternalProperty . setNative ] ( value : UIColor ) {
648
- // tslint:disable-line
649
- }
648
+ // @ts -ignore
649
+ [ backgroundInternalProperty . setNative ] ( value : UIColor ) { }
650
650
651
651
[ flatProperty . setNative ] ( value : boolean ) {
652
652
const navBar = this . navBar ;
@@ -661,4 +661,13 @@ export class ActionBar extends ActionBarBase {
661
661
[ iosIconRenderingModeProperty . setNative ] ( value : 'automatic' | 'alwaysOriginal' | 'alwaysTemplate' ) {
662
662
this . update ( ) ;
663
663
}
664
+
665
+ [ iosLargeTitleProperty . setNative ] ( value : boolean ) {
666
+ if ( ! this . navBar ) {
667
+ return ;
668
+ }
669
+ if ( SDK_VERSION >= 11 ) {
670
+ this . navBar . prefersLargeTitles = value ;
671
+ }
672
+ }
664
673
}
0 commit comments