mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #86 from omnivore-app/feature/ios-pdf-navbar
Compact Navbar for PDF Viewer [iOS]
This commit is contained in:
commit
ecbe22eb53
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue