mirror of
https://github.com/tappollo/IGListKit.git
synced 2026-06-14 17:09:44 +08:00
Revert D4640425: [IGListKit] kill IGListCollectionView. GH issue #409
Summary: This reverts commit 871b75eaeb1c9f2a40fe8f3fd81b209661704587 Differential Revision: D4640425 fbshipit-source-id: 4b0e8a9820891062cf7f8d13de13d678adb5df4a
This commit is contained in:
committed by
Facebook Github Bot
parent
3fb2ac0d60
commit
68a264d29c
@@ -20,8 +20,7 @@ final class EmptyViewController: UIViewController, IGListAdapterDataSource, Remo
|
||||
lazy var adapter: IGListAdapter = {
|
||||
return IGListAdapter(updater: IGListAdapterUpdater(), viewController: self, workingRangeSize: 0)
|
||||
}()
|
||||
|
||||
let collectionView = UICollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
|
||||
let collectionView = IGListCollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
|
||||
|
||||
let emptyLabel: UILabel = {
|
||||
let label = UILabel()
|
||||
@@ -33,8 +32,12 @@ final class EmptyViewController: UIViewController, IGListAdapterDataSource, Remo
|
||||
}()
|
||||
|
||||
var tally = 4
|
||||
|
||||
var data = [1, 2, 3, 4]
|
||||
var data = [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
]
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
@@ -84,5 +87,5 @@ final class EmptyViewController: UIViewController, IGListAdapterDataSource, Remo
|
||||
data.remove(at: index)
|
||||
adapter.performUpdates(animated: true, completion: nil)
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user