|
@@ -654,6 +654,23 @@ const NSInteger TRANSPARENT_NAVBAR_TAG = 78264803;
|
654
|
654
|
self.navigationItem.titleView.clipsToBounds = YES;
|
655
|
655
|
}
|
656
|
656
|
}
|
|
657
|
+
|
|
658
|
+ if (@available(iOS 11.0, *)) {
|
|
659
|
+ if ([self.navigationController.navigationBar respondsToSelector:@selector(setPrefersLargeTitles:)]) {
|
|
660
|
+ NSNumber *prefersLargeTitles = self.navigatorStyle[@"largeTitle"];
|
|
661
|
+ if (prefersLargeTitles) {
|
|
662
|
+ if ([prefersLargeTitles boolValue]) {
|
|
663
|
+ self.navigationController.navigationBar.prefersLargeTitles = YES;
|
|
664
|
+ self.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeAlways;
|
|
665
|
+ } else {
|
|
666
|
+ self.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeNever;
|
|
667
|
+ }
|
|
668
|
+ } else {
|
|
669
|
+ self.navigationController.navigationBar.prefersLargeTitles = NO;
|
|
670
|
+ self.navigationItem.largeTitleDisplayMode = UINavigationItemLargeTitleDisplayModeNever;
|
|
671
|
+ }
|
|
672
|
+ }
|
|
673
|
+ }
|
657
|
674
|
}
|
658
|
675
|
|
659
|
676
|
|