Skip to content

Commit

Permalink
Fix for Reader Detail view navigation bars on iOS 15
Browse files Browse the repository at this point in the history
  • Loading branch information
frosty committed Dec 1, 2021
1 parent ff3fbe2 commit b351d33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions WordPress/Classes/ViewRelated/System/WPTabBarController.m
Original file line number Diff line number Diff line change
@@ -160,6 +160,11 @@ - (UINavigationController *)readerNavigationController
_readerNavigationController.navigationBar.translucent = NO;
_readerNavigationController.view.backgroundColor = [UIColor murielBasicBackground];

// Set a clear scroll edge background to allow for featured images that extend behind the navigation area.
UINavigationBarAppearance *appearance =_readerNavigationController.navigationBar.scrollEdgeAppearance;
appearance.backgroundColor = [UIColor clearColor];
_readerNavigationController.navigationBar.scrollEdgeAppearance = appearance;

UIImage *readerTabBarImage = [UIImage imageNamed:@"icon-tab-reader"];
_readerNavigationController.tabBarItem.image = readerTabBarImage;
_readerNavigationController.tabBarItem.selectedImage = readerTabBarImage;

0 comments on commit b351d33

Please sign in to comment.