From b351d33f195709949b21b0d654599d2019df7972 Mon Sep 17 00:00:00 2001 From: James Frost Date: Wed, 1 Dec 2021 13:27:18 +0000 Subject: [PATCH] Fix for Reader Detail view navigation bars on iOS 15 --- WordPress/Classes/ViewRelated/System/WPTabBarController.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WordPress/Classes/ViewRelated/System/WPTabBarController.m b/WordPress/Classes/ViewRelated/System/WPTabBarController.m index fdb3224466d5..cf5230313565 100644 --- a/WordPress/Classes/ViewRelated/System/WPTabBarController.m +++ b/WordPress/Classes/ViewRelated/System/WPTabBarController.m @@ -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;