diff --git a/NYTPhotoViewer/NYTPhotosViewController.m b/NYTPhotoViewer/NYTPhotosViewController.m index 9420a768..b557eb83 100644 --- a/NYTPhotoViewer/NYTPhotosViewController.m +++ b/NYTPhotoViewer/NYTPhotosViewController.m @@ -135,6 +135,14 @@ - (void)viewDidLoad { } self.transitionController.endingView = endingView; + + if (@available(iOS 15.0, *)) { + UINavigationBarAppearance *navBarAppearance = [[UINavigationBarAppearance alloc] init]; + [navBarAppearance configureWithTransparentBackground]; + navBarAppearance.backgroundColor = [UIColor colorWithRed: 0.0/255.0 green: 0.0/255.0 blue: 0.0/255.0 alpha:0.3]; + [[UINavigationBar appearance] setStandardAppearance:navBarAppearance]; + [[UINavigationBar appearance] setScrollEdgeAppearance:navBarAppearance]; + } } - (void)viewDidAppear:(BOOL)animated {