mirror of
https://github.com/tappollo/IGListKit.git
synced 2026-06-15 09:28:28 +08:00
kill IGListCollectionView. GH issue #409
Summary: Remove `IGListCollectionView` per #409. Use plain old `UICollectionView`. Reviewed By: rnystrom Differential Revision: D4640425 fbshipit-source-id: 871b75eaeb1c9f2a40fe8f3fd81b209661704587
This commit is contained in:
committed by
Facebook Github Bot
parent
2e996e283e
commit
3fb2ac0d60
@@ -21,7 +21,7 @@ final class WorkingRangeViewController: UIViewController, IGListAdapterDataSourc
|
||||
return IGListAdapter(updater: IGListAdapterUpdater(), viewController: self, workingRangeSize: 2)
|
||||
}()
|
||||
|
||||
let collectionView = IGListCollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
|
||||
let collectionView = UICollectionView(frame: .zero, collectionViewLayout: UICollectionViewFlowLayout())
|
||||
|
||||
let data: [Int] = {
|
||||
var set = Set<Int>() // only use unique values
|
||||
@@ -44,7 +44,7 @@ final class WorkingRangeViewController: UIViewController, IGListAdapterDataSourc
|
||||
collectionView.frame = view.bounds
|
||||
}
|
||||
|
||||
//MARK: IGListAdapterDataSource
|
||||
// MARK: IGListAdapterDataSource
|
||||
|
||||
func objects(for listAdapter: IGListAdapter) -> [IGListDiffable] {
|
||||
return data as [IGListDiffable]
|
||||
|
||||
Reference in New Issue
Block a user