Skip to content

Commit

Permalink
Merge pull request #17609 from wordpress-mobile/fix/reader-header
Browse files Browse the repository at this point in the history
Fix Reader detail headers with featured images on iOS 15
  • Loading branch information
AliSoftware authored Dec 2, 2021
2 parents b36a4d1 + b351d33 commit f21cef5
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
Expand Up @@ -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;
Expand Down

0 comments on commit f21cef5

Please sign in to comment.