hybrid-navigation 2.7.0 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -331,7 +331,7 @@ void printViewHierarchy(UIView *view, NSString *prefix) {
|
|
|
331
331
|
[self.nav showFakeBarFrom:from to:to];
|
|
332
332
|
} else {
|
|
333
333
|
[self.nav updateNavigationBarForViewController:viewController];
|
|
334
|
-
if (@available(iOS
|
|
334
|
+
if (@available(iOS 13.0, *)) {
|
|
335
335
|
if (to == viewController) {
|
|
336
336
|
self.nav.navigationBar.scrollEdgeAppearance.backgroundColor = viewController.hbd_barTintColor;
|
|
337
337
|
self.nav.navigationBar.standardAppearance.backgroundColor = viewController.hbd_barTintColor;
|
|
@@ -341,7 +341,7 @@ void printViewHierarchy(UIView *view, NSString *prefix) {
|
|
|
341
341
|
} completion:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
|
|
342
342
|
self.nav.poppingViewController = nil;
|
|
343
343
|
|
|
344
|
-
if (@available(iOS
|
|
344
|
+
if (@available(iOS 13.0, *)) {
|
|
345
345
|
self.nav.navigationBar.scrollEdgeAppearance.backgroundColor = UIColor.clearColor;
|
|
346
346
|
self.nav.navigationBar.standardAppearance.backgroundColor = UIColor.clearColor;
|
|
347
347
|
}
|
|
@@ -470,11 +470,12 @@ void printViewHierarchy(UIView *view, NSString *prefix) {
|
|
|
470
470
|
[self.navigationBar setTranslucent:YES];
|
|
471
471
|
[self.navigationBar setShadowImage:[UINavigationBar appearance].shadowImage];
|
|
472
472
|
|
|
473
|
-
if (@available(iOS
|
|
473
|
+
if (@available(iOS 13.0, *)) {
|
|
474
474
|
UINavigationBarAppearance *scrollEdgeAppearance = [[UINavigationBarAppearance alloc] init];
|
|
475
475
|
[scrollEdgeAppearance configureWithTransparentBackground];
|
|
476
476
|
scrollEdgeAppearance.shadowColor = UIColor.clearColor;
|
|
477
477
|
scrollEdgeAppearance.backgroundColor = UIColor.clearColor;
|
|
478
|
+
[scrollEdgeAppearance setBackIndicatorImage:[UINavigationBar appearance].backIndicatorImage transitionMaskImage:[UINavigationBar appearance].backIndicatorTransitionMaskImage];
|
|
478
479
|
self.navigationBar.scrollEdgeAppearance = scrollEdgeAppearance;
|
|
479
480
|
self.navigationBar.standardAppearance = [scrollEdgeAppearance copy];
|
|
480
481
|
}
|
|
@@ -626,7 +627,7 @@ void printViewHierarchy(UIView *view, NSString *prefix) {
|
|
|
626
627
|
- (void)updateNavigationBarTinitColorForViewController:(UIViewController *)vc {
|
|
627
628
|
self.navigationBar.tintColor = vc.hbd_tintColor;
|
|
628
629
|
self.navigationBar.titleTextAttributes = vc.hbd_titleTextAttributes;
|
|
629
|
-
if (@available(iOS
|
|
630
|
+
if (@available(iOS 13.0, *)) {
|
|
630
631
|
self.navigationBar.scrollEdgeAppearance.titleTextAttributes = vc.hbd_titleTextAttributes;
|
|
631
632
|
self.navigationBar.standardAppearance.titleTextAttributes = vc.hbd_titleTextAttributes;
|
|
632
633
|
}
|