Skip to content
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

[Gallery layout] Include the caller in properties providing methods #533

Merged

Conversation

nguyenhuy
Copy link
Member

  • This is the convention for delegate methods.
  • Clients can use the caller to decide which value to return, for example when they have multiple layouts using the same provider.

@nguyenhuy nguyenhuy force-pushed the HNPropertiesProviderWithCallee branch from ada6985 to bce2754 Compare August 25, 2017 10:36
@nguyenhuy nguyenhuy changed the title [Gallery layout] Include the callee in properties providing methods [Gallery layout] Include the caller in properties providing methods Aug 25, 2017
Copy link
Contributor

@maicki maicki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one question.

@@ -148,7 +148,7 @@ - (NSInteger)indexOfPageWithNode:(ASCellNode *)node

#pragma mark - ASCollectionGalleryLayoutPropertiesProviding

- (CGSize)sizeForElements:(ASElementMap *)elements
- (CGSize)galleryLayoutDelegate:(nonnull ASCollectionGalleryLayoutDelegate *)delegate sizeForElements:(nonnull ASElementMap *)elements
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this be a breaking API change or do we see the ASCollectionGalleryLayout as beta or not announced yet?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the whole async collection layout API is still in beta.

@nguyenhuy nguyenhuy merged commit d4b1f62 into TextureGroup:master Sep 8, 2017
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
…extureGroup#533)

* Include the caller in ASCollectionGalleryLayoutPropertiesProviding's methods

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants