-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Remove IGListCollectionView] Should IGListAdapter really depend on IGListCollectionView? #409
Comments
This has come up before: #240. I'm open to removing |
Actually, one other thought / data point here. If users wanted to use |
Yep, I saw that, but I'm not proposing allowing subclassing. I don't see why this can't be used with an arbitrary UICollectionView subclass, and I don't want to make subclassing the defined class in the framework the only way to use a custom collection view. There are numerous valid uses of subclasses. Is there a good reason to keep the collection view in the interface of IGListAdapter? If people want to use IGListCollectionView, great. |
Primary reason for the class is just to attempt to prevent access to The only real negative to removing this is that users will be able to misuse the framework more easily. But, that can be (partially) remedied with docs. |
Talked w/ @ocrickard a bit about this today. I'm warming up to the idea. I really don't want to lose the compiler safety of not calling update methods, but at the same time the pain is real for some folks. Hell even facebookarchive/AsyncDisplayKit#2848 had to hack around it. I've also been brainstorming adding And I agree if we're going to do this let's just drop |
One more thing, if you want to use |
@jessesquires oh nice, that's a great point! |
@rnystrom - what's the decision here? kill |
Or -- we could keep However, other APIs could change to This would also make it easier to make this change in IG |
I think we should kill it. There are legit reasons to subclass |
imma do dis |
landing internally now 🛬 |
Summary: Remove `IGListCollectionView` per #409. Use plain old `UICollectionView`. Reviewed By: rnystrom Differential Revision: D4640425 fbshipit-source-id: 871b75eaeb1c9f2a40fe8f3fd81b209661704587
Summary: This reverts commit 871b75eaeb1c9f2a40fe8f3fd81b209661704587 Differential Revision: D4640425 fbshipit-source-id: 4b0e8a9820891062cf7f8d13de13d678adb5df4a
Taking another stab at this today. |
Summary: Take 2. Remove `IGListCollectionView` per #409. Use plain old `UICollectionView`. (This re-applies D4640425 and updates as needed.) Also: - run `pod update` everywhere - update changelog Reviewed By: paulvanderspek Differential Revision: D4812207 fbshipit-source-id: 1ddbae06cdeddb43d8af175d3e8a045a36ff150e
There are legitimate reasons to use a different UICollectionView, and virtually every large codebase that looks at incremental conversion will have to use IGListAdapter with an existing subclass of UICollectionView. I get the need to use this for people new to the framework, but we need a way to configure IGListKit to work with existing collection views. Would we reconsider the dependency?
The text was updated successfully, but these errors were encountered: