|
@@ -92,19 +92,22 @@ import PDFKit
|
|
|
guard let navigationController = detailViewController.navigationController else { return }
|
|
|
|
|
|
if navigationController.isNavigationBarHidden {
|
|
|
+
|
|
|
navigationController.isNavigationBarHidden = false
|
|
|
pdfThumbnailView!.isHidden = false
|
|
|
backgroundColor = NCBrandColor.sharedInstance.backgroundView
|
|
|
detailViewController.view.backgroundColor = backgroundColor
|
|
|
backgroundColor = .black
|
|
|
-
|
|
|
self.frame = CGRect(x: 0, y: 0, width: detailViewController.backgroundView.frame.width, height: detailViewController.backgroundView.frame.height - thumbnailViewHeight)
|
|
|
+
|
|
|
} else {
|
|
|
+
|
|
|
navigationController.isNavigationBarHidden = true
|
|
|
pdfThumbnailView!.isHidden = true
|
|
|
backgroundColor = .black
|
|
|
detailViewController.view.backgroundColor = backgroundColor
|
|
|
self.frame = CGRect(x: 0, y: 0, width: detailViewController.backgroundView.frame.width, height: detailViewController.backgroundView.frame.height)
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|