marinofaggiana преди 5 години
родител
ревизия
8937f85584
променени са 1 файла, в които са добавени 10 реда и са изтрити 4 реда
  1. 10 4
      iOSClient/Share/NCSharePaging.swift

+ 10 - 4
iOSClient/Share/NCSharePaging.swift

@@ -88,10 +88,6 @@ class NCSharePaging: UIViewController {
         pagingViewController.reloadMenu()
     }
     
-    @objc func exitTapped() {
-        self.dismiss(animated: true, completion: nil)
-    }
-    
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
         
@@ -105,8 +101,14 @@ class NCSharePaging: UIViewController {
         appDelegate.activeFavorites?.reloadDatasource(nil, action: Int(k_action_NULL))
         appDelegate.activeOffline?.loadDatasource()
     }
+    
+    @objc func exitTapped() {
+        self.dismiss(animated: true, completion: nil)
+    }
 }
 
+// MARK: - PagingViewController Delegate
+
 extension NCSharePaging: PagingViewControllerDelegate {
     
     func pagingViewController<T>(_ pagingViewController: PagingViewController<T>, willScrollToItem pagingItem: T, startingViewController: UIViewController, destinationViewController: UIViewController) where T : PagingItem, T : Comparable, T : Hashable {
@@ -116,6 +118,8 @@ extension NCSharePaging: PagingViewControllerDelegate {
     }
 }
 
+// MARK: - PagingViewController DataSource
+
 extension NCSharePaging: PagingViewControllerDataSource {
     
     func pagingViewController<T>(_ pagingViewController: PagingViewController<T>, viewControllerForIndex index: Int) -> UIViewController {
@@ -163,6 +167,8 @@ extension NCSharePaging: PagingViewControllerDataSource {
     }
 }
 
+// MARK: - Header
+
 class NCShareHeaderViewController: PagingViewController<PagingIndexItem> {
     
     public var image: UIImage?