-
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
Add supplementary source example #169
Conversation
f255801
to
0fb3fd1
Compare
@rnystrom updated the pull request - view changes |
1 similar comment
|
||
import IGListKit | ||
|
||
class FeedItem: IGListDiffable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
|
||
import IGListKit | ||
|
||
class FeedItemSectionController: IGListSectionController, IGListSectionType, IGListSupplementaryViewSource { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
import UIKit | ||
import IGListKit | ||
|
||
class SupplementaryViewController: UIViewController, IGListAdapterDataSource { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
|
||
import UIKit | ||
|
||
class UserHeaderView: UICollectionViewCell { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@rnystrom updated the pull request - view changes |
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@rnystrom it would be great if this example could show how you would go about making the section headers sticky like on Instagram. Is it possible for you to help out with that? Thanks :) |
@HumidBrains if you're using Within Instagram we hyper optimize and have written our own I've seen some open source examples of this, but if you can, I'd just start off w/ |
@rnystrom thanks! And what layout framework are you recommending to use in conjunction with IGListKit and Swift? I saw someone asking about AsyncDisplayKit, but to me it looks like the benefits from using ASDisplayNode goes lost? |
Changes in this pull request
Got around to adding a supplementary view source example.
Fixes #153 #163
Pull request checklist