Delay the show toolbar animation to prevent it from looking all crazy

This commit is contained in:
Maurice Parker
2022-01-28 16:21:35 -08:00
parent ba4c17c0d7
commit f78c059b1b

View File

@@ -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
}