marinofaggiana 5 years ago
parent
commit
a60704690d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      iOSClient/Share/NCSharePaging.swift

+ 6 - 1
iOSClient/Share/NCSharePaging.swift

@@ -56,7 +56,6 @@ class NCSharePaging: UIViewController {
             spacing: .zero,
             insets: .zero
         )
-        pagingViewController.menuItemSize = .fixed(width: self.view.bounds.width/3, height: 40)
         
         // Contrain the paging view to all edges.
         pagingViewController.view.translatesAutoresizingMaskIntoConstraints = false
@@ -74,6 +73,12 @@ class NCSharePaging: UIViewController {
     @objc func exitTapped() {
         self.dismiss(animated: true, completion: nil)
     }
+    
+    override func viewWillAppear(_ animated: Bool) {
+        super.viewWillAppear(animated)
+        
+        pagingViewController.menuItemSize = .fixed(width: self.view.bounds.width/3, height: 40)
+    }
 }
 
 extension NCSharePaging: PagingViewControllerDataSource {