From aafe6738113e9445174fde2bb69758c019ba4400 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Wed, 27 Apr 2022 17:57:55 -0700 Subject: [PATCH] Fixes invisible navigation bar + toolbar on iPadOS 15 --- Delta/Game Selection/GamesViewController.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Delta/Game Selection/GamesViewController.swift b/Delta/Game Selection/GamesViewController.swift index 7b5180b..70767d2 100644 --- a/Delta/Game Selection/GamesViewController.swift +++ b/Delta/Game Selection/GamesViewController.swift @@ -114,10 +114,16 @@ extension GamesViewController let navigationBarAppearance = navigationController.navigationBar.standardAppearance.copy() navigationBarAppearance.backgroundEffect = UIBlurEffect(style: .dark) navigationController.navigationBar.standardAppearance = navigationBarAppearance + navigationController.navigationBar.scrollEdgeAppearance = navigationBarAppearance let toolbarAppearance = navigationController.toolbar.standardAppearance.copy() toolbarAppearance.backgroundEffect = UIBlurEffect(style: .dark) - navigationController.toolbar.standardAppearance = toolbarAppearance + navigationController.toolbar.standardAppearance = toolbarAppearance + + if #available(iOS 15, *) + { + navigationController.toolbar.scrollEdgeAppearance = toolbarAppearance + } } else {