|
@@ -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)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
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 {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
extension NCSharePaging: PagingViewControllerDataSource {
|
|
|
|
|
|
func pagingViewController<T>(_ pagingViewController: PagingViewController<T>, viewControllerForIndex index: Int) -> UIViewController {
|
|
@@ -163,6 +167,8 @@ extension NCSharePaging: PagingViewControllerDataSource {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
class NCShareHeaderViewController: PagingViewController<PagingIndexItem> {
|
|
|
|
|
|
public var image: UIImage?
|