Show bottom buttons when we show nav bar, make tap toggle the two

This commit is contained in:
Jackson Harper 2023-02-07 17:44:36 +08:00
parent f800e3a04e
commit 9ebf0f6a6b
2 changed files with 2 additions and 5 deletions

View file

@ -368,7 +368,8 @@ struct WebReaderContainerView: View {
)
.onTapGesture {
withAnimation {
navBarVisibilityRatio = 1
showBottomBar = !showBottomBar
navBarVisibilityRatio = navBarVisibilityRatio == 1 ? 0 : 1
showNavBarActionID = UUID()
}
}

View file

@ -15,10 +15,6 @@ struct SafariWebLink: Identifiable {
@Published var isDownloadingAudio: Bool = false
@Published var audioDownloadTask: Task<Void, Error>?
deinit {
print("deinit WebReaderViewModel")
}
func hasOriginalUrl(_ item: LinkedItem) -> Bool {
if let pageURLString = item.pageURLString, let host = URL(string: pageURLString)?.host {
if host == "omnivore.app" {