Browse Source

clear code

marinofaggiana 4 years ago
parent
commit
3e7ac36efa
1 changed files with 7 additions and 0 deletions
  1. 7 0
      iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

+ 7 - 0
iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

@@ -286,9 +286,12 @@ class NCViewerImagePageContainer: UIViewController, UIGestureRecognizerDelegate
         } else {
         } else {
         
         
             if currentMode == .full {
             if currentMode == .full {
+                
                 changeScreenMode(to: .normal)
                 changeScreenMode(to: .normal)
                 currentMode = .normal
                 currentMode = .normal
+                
             } else {
             } else {
+                
                 changeScreenMode(to: .full)
                 changeScreenMode(to: .full)
                 currentMode = .full
                 currentMode = .full
             }
             }
@@ -389,11 +392,15 @@ class NCViewerImagePageContainer: UIViewController, UIGestureRecognizerDelegate
     //MARK: - Function
     //MARK: - Function
     
     
     func changeScreenMode(to: ScreenMode) {
     func changeScreenMode(to: ScreenMode) {
+        
         if to == .full {
         if to == .full {
+            
             navigationController?.setNavigationBarHidden(true, animated: false)
             navigationController?.setNavigationBarHidden(true, animated: false)
             view.backgroundColor = .black
             view.backgroundColor = .black
             progressView.isHidden = true
             progressView.isHidden = true
+            
         } else {
         } else {
+            
             navigationController?.setNavigationBarHidden(false, animated: false)
             navigationController?.setNavigationBarHidden(false, animated: false)
             view.backgroundColor = NCBrandColor.sharedInstance.backgroundView
             view.backgroundColor = NCBrandColor.sharedInstance.backgroundView
             progressView.isHidden = false
             progressView.isHidden = false