From f78c059b1bc7055b243803eff4bd12e89d6d6818 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Fri, 28 Jan 2022 16:21:35 -0800 Subject: [PATCH] Delay the show toolbar animation to prevent it from looking all crazy --- iOS/SceneCoordinator.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 131d830a8..1b20e86d4 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -1347,7 +1347,12 @@ extension SceneCoordinator: UINavigationControllerDelegate { // Restore any bars hidden by the article controller showStatusBar() - navigationController.setNavigationBarHidden(false, animated: true) + + // We delay the showing of the navigation bars because it freaks out on iOS 15 with the new split view controller + // if it is trying to show at the same time as the show timeline animation + DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) { + navigationController.setNavigationBarHidden(false, animated: true) + } navigationController.setToolbarHidden(false, animated: true) return }