-
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
Improved the documentation #820
Conversation
@weyert updated the pull request - view changes |
Source/IGListAdapter.m
Outdated
@@ -272,6 +272,7 @@ - (void)performUpdatesAnimated:(BOOL)animated completion:(IGListUpdaterCompletio | |||
id<IGListAdapterDataSource> dataSource = self.dataSource; | |||
UICollectionView *collectionView = self.collectionView; | |||
if (dataSource == nil || collectionView == nil) { | |||
IGLKLog(@"Warning: Your call to performUpdatesAnimated-method is ignored as dataSource or collectionView haven't been set."); |
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.
instead of "performUpdatesAnimated-method" we can use %s
and pass __PRETTY_FUNCTION__
😄
Source/IGListAdapter.m
Outdated
@@ -308,6 +309,7 @@ - (void)reloadDataWithCompletion:(nullable IGListUpdaterCompletion)completion { | |||
id<IGListAdapterDataSource> dataSource = self.dataSource; | |||
UICollectionView *collectionView = self.collectionView; | |||
if (dataSource == nil || collectionView == nil) { | |||
IGLKLog(@"Warning: Your call to reloadDataWithCompletion-method is ignored as dataSource or collectionView haven't been set."); |
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.
same as above 😊
@weyert updated the pull request - view changes |
thanks @weyert ! just a few comments 😄 |
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.
+1 @jessesquires's notes
Thank you, I will make the changes :) |
Fixed the issue with the failed merge of `upstream`
@weyert updated the pull request - view changes |
@jessesquires @rnystrom made the change as requested 👍 |
@weyert updated the pull request - view changes |
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.
Looks good! 🥇
@rnystrom has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Improved the documentation so it that the Getting Started guide calls out that you need to set
dataSource
-property of theIGListAdapter
as I totally misse that.