浏览代码

new view image

marinofaggiana 4 年之前
父节点
当前提交
018f181e58
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

+ 2 - 1
iOSClient/Viewer/NCViewerImage/NCViewerImagePageContainer.swift

@@ -149,6 +149,7 @@ class NCViewerImagePageContainer: UIViewController, UIGestureRecognizerDelegate
     }
     
     @objc func changeTheming() {
+        
         if currentMode == .normal {
             view.backgroundColor = NCBrandColor.sharedInstance.backgroundView
         }
@@ -325,8 +326,8 @@ extension NCViewerImagePageContainer: UIPageViewControllerDelegate, UIPageViewCo
         
         let viewerImageZoom = UIStoryboard(name: "NCViewerImage", bundle: nil).instantiateViewController(withIdentifier: "NCViewerImageZoom") as! NCViewerImageZoom
                 
-        viewerImageZoom.image = getImageMetadata(metadatas[currentIndex - 1])
         viewerImageZoom.index = currentIndex - 1
+        viewerImageZoom.image = getImageMetadata(metadatas[currentIndex - 1])
         viewerImageZoom.metadata = metadatas[currentIndex - 1]
         viewerImageZoom.delegate = self