浏览代码

clear old code

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 1 年之前
父节点
当前提交
494b2c04d2
共有 1 个文件被更改,包括 0 次插入12 次删除
  1. 0 12
      iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

+ 0 - 12
iOSClient/Viewer/NCViewerPDF/NCViewerPDF.swift

@@ -57,12 +57,6 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
     private var pdfThumbnailScrollViewWidthAnchor: NSLayoutConstraint?
     private var pageViewWidthAnchor: NSLayoutConstraint?
 
-    private var hideStatusBar: Bool = false {
-        didSet {
-            setNeedsStatusBarAppearanceUpdate()
-        }
-    }
-
     // MARK: - View Life Cycle
 
     required init?(coder aDecoder: NSCoder) {
@@ -133,10 +127,6 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
         })
     }
 
-    override var prefersStatusBarHidden: Bool {
-        return hideStatusBar
-    }
-
     @objc func viewUnload() {
 
         navigationController?.popViewController(animated: true)
@@ -412,11 +402,9 @@ class NCViewerPDF: UIViewController, NCViewerPDFSearchDelegate {
 
             if navigationController?.isNavigationBarHidden ?? false {
                 navigationController?.setNavigationBarHidden(false, animated: true)
-                hideStatusBar = false
                 pdfThumbnailScrollViewTopAnchor = pdfThumbnailScrollView.topAnchor.constraint(equalTo: pdfContainer.safeAreaLayoutGuide.topAnchor)
             } else {
                 navigationController?.setNavigationBarHidden(true, animated: true)
-                hideStatusBar = true
                 pdfThumbnailScrollViewTopAnchor = pdfThumbnailScrollView.topAnchor.constraint(equalTo: pdfContainer.topAnchor)
             }
         }