Merge pull request #86 from omnivore-app/feature/ios-pdf-navbar

Compact Navbar for PDF Viewer [iOS]
This commit is contained in:
Satindar Dhillon 2022-02-17 21:21:56 -08:00 committed by GitHub
commit ecbe22eb53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -157,6 +157,7 @@ public struct LinkItemDetailView: View {
if let pdfURL = viewModel.item.pdfURL {
#if os(iOS)
PDFProvider.pdfViewerProvider?(pdfURL, viewModel.item)
.navigationBarTitleDisplayMode(.inline)
#elseif os(macOS)
PDFWrapperView(pdfURL: pdfURL)
#endif

View file

@ -21,7 +21,7 @@ import WebKit
let nav = UINavigationController(rootViewController: readerViewcontroller)
// Using an emoty image creates a transparent navigation bar
// Using an empty image creates a transparent navigation bar
nav.navigationBar.setBackgroundImage(UIImage(), for: .default)
nav.navigationBar.shadowImage = UIImage()
nav.navigationBar.isTranslucent = true