set inline style nav bar for pdfviewer
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user