marinofaggiana преди 4 години
родител
ревизия
7115a5afaf
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      iOSClient/Offline/NCOffline.swift
  2. 1 1
      iOSClient/Select/NCSelect.swift
  3. 1 1
      iOSClient/Trash/NCTrash.swift

+ 1 - 1
iOSClient/Offline/NCOffline.swift

@@ -137,7 +137,7 @@ class NCOffline: UIViewController, UIGestureRecognizerDelegate, NCListCellDelega
         super.viewWillTransition(to: size, with: coordinator)
         
         coordinator.animate(alongsideTransition: nil) { _ in
-            self.collectionView.collectionViewLayout.invalidateLayout()
+            self.collectionView?.collectionViewLayout.invalidateLayout()
         }
     }
     

+ 1 - 1
iOSClient/Select/NCSelect.swift

@@ -196,7 +196,7 @@ class NCSelect: UIViewController, UIGestureRecognizerDelegate, NCListCellDelegat
         super.viewWillTransition(to: size, with: coordinator)
         
         coordinator.animate(alongsideTransition: nil) { _ in
-            self.collectionView.collectionViewLayout.invalidateLayout()
+            self.collectionView?.collectionViewLayout.invalidateLayout()
         }
     }
     

+ 1 - 1
iOSClient/Trash/NCTrash.swift

@@ -115,7 +115,7 @@ class NCTrash: UIViewController, UIGestureRecognizerDelegate, NCTrashListCellDel
         super.viewWillTransition(to: size, with: coordinator)
         
         coordinator.animate(alongsideTransition: nil) { _ in
-            self.collectionView.collectionViewLayout.invalidateLayout()
+            self.collectionView?.collectionViewLayout.invalidateLayout()
         }
     }