From c5cb5d9514ef27376fe392f380bcf3eb0522112a Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Tue, 7 Feb 2023 18:07:34 +0800 Subject: [PATCH] We initially show the nav bar but not bottom bar, so this keeps them in sync on subsequent taps --- .../Sources/App/Views/WebReader/WebReaderContainer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift index fe1c9dfc4..efbe6934c 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift @@ -368,8 +368,8 @@ struct WebReaderContainerView: View { ) .onTapGesture { withAnimation { - showBottomBar = !showBottomBar navBarVisibilityRatio = navBarVisibilityRatio == 1 ? 0 : 1 + showBottomBar = navBarVisibilityRatio == 1 showNavBarActionID = UUID() } }