marinofaggiana 4 년 전
부모
커밋
7b0e354aad
1개의 변경된 파일3개의 추가작업 그리고 11개의 파일을 삭제
  1. 3 11
      iOSClient/Main/Collection/NCCollectionViewCommon.swift

+ 3 - 11
iOSClient/Main/Collection/NCCollectionViewCommon.swift

@@ -220,9 +220,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
                         collectionView?.performBatchUpdates({
                             collectionView?.deleteItems(at: [indexPath])
                         }, completion: { (_) in
-                            DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
-                                self.collectionView?.reloadData()
-                            }
+                            self.collectionView?.reloadData()
                         })
                     }
                 }
@@ -242,12 +240,8 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
                         collectionView?.performBatchUpdates({
                             collectionView?.deleteItems(at: [indexPath])
                         }, completion: { (_) in
-                            DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
-                                self.collectionView?.reloadData()
-                            }
+                            self.collectionView?.reloadData()
                         })
-                    } else {
-                        self.collectionView?.reloadData()
                     }
                 }
             }
@@ -405,9 +399,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
                         collectionView?.performBatchUpdates({
                             collectionView?.deleteItems(at: [indexPath])
                         }, completion: { (_) in
-                            DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
-                                self.collectionView?.reloadData()
-                            }
+                            self.collectionView?.reloadData()
                         })
                     } else {
                         self.reloadDataSource()