marinofaggiana 4 jaren geleden
bovenliggende
commit
7115a5afaf
3 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  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()
         }
     }