|
@@ -112,16 +112,18 @@ class NCViewerMediaPage: UIViewController {
|
|
|
pageViewController.view.addGestureRecognizer(panGestureRecognizer)
|
|
|
pageViewController.view.addGestureRecognizer(singleTapGestureRecognizer)
|
|
|
pageViewController.view.addGestureRecognizer(longtapGestureRecognizer)
|
|
|
-
|
|
|
- let viewerMedia = getViewerMedia(index: currentIndex, metadata: metadatas[currentIndex])
|
|
|
- pageViewController.setViewControllers([viewerMedia], direction: .forward, animated: true, completion: nil)
|
|
|
-
|
|
|
- NotificationCenter.default.addObserver(self, selector: #selector(viewUnload), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterMenuDetailClose), object: nil)
|
|
|
|
|
|
progressView.tintColor = NCBrandColor.shared.brandElement
|
|
|
progressView.trackTintColor = .clear
|
|
|
progressView.progress = 0
|
|
|
|
|
|
+
|
|
|
+ let viewerMedia = getViewerMedia(index: currentIndex, metadata: metadatas[currentIndex])
|
|
|
+ pageViewController.setViewControllers([viewerMedia], direction: .forward, animated: true, completion: nil)
|
|
|
+ changeScreenMode(mode: viewerMediaScreenMode)
|
|
|
+
|
|
|
+ NotificationCenter.default.addObserver(self, selector: #selector(viewUnload), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterMenuDetailClose), object: nil)
|
|
|
+
|
|
|
NotificationCenter.default.addObserver(self, selector: #selector(pageViewController.enableSwipeGesture), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterEnableSwipeGesture), object: nil)
|
|
|
NotificationCenter.default.addObserver(self, selector: #selector(pageViewController.disableSwipeGesture), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterDisableSwipeGesture), object: nil)
|
|
|
|