Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

[Example App] New sample that uses a network-loading collection view on iPhone and iPad.#1050

Merged
appleguy merged 1 commit intofacebookarchive:masterfrom
stowy:stowy/asdk_cat_sample
Jan 24, 2016
Merged

[Example App] New sample that uses a network-loading collection view on iPhone and iPad.#1050
appleguy merged 1 commit intofacebookarchive:masterfrom
stowy:stowy/asdk_cat_sample

Conversation

@stowy
Copy link
Copy Markdown
Contributor

@stowy stowy commented Jan 9, 2016

As discussed with @appleguy, creating a pull request for review for this sample project we have been collaborating on.

This includes a new layout spec 'ASRelativePositionLayoutSpec' used for positioning views, much like the center layout spec, but with more options - center, left/top or right/bottom align - on both axis.

The sample project includes a fairly complex node layout, as well as infinite scrolling.

Cat deals FTW! :-)

@facebook-github-bot
Copy link
Copy Markdown

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@appleguy
Copy link
Copy Markdown
Contributor

@stowy love it, thanks Sam! It's been a blast working with you.

@lappp9 you might be interested in checking this out. We could consider using elements from it for the main sample project, or at least keep it in mind as part of the portfolio of sample projects if we want to go in a different direction. Whatever we do should definitely include orthogonal nested scrollers, like an ASPagerNode containing ASTableNodes, or vertical ASCollectionNode containing a horizontal one in some of its cells (like the photo story side-scroll units in Facebook)

@stowy
Copy link
Copy Markdown
Contributor Author

stowy commented Jan 11, 2016

Thanks @appleguy been great working with you too, I hope it can continue. I would be interested in adding the ASPagerNode and also the ascollectionnode because I'd like to know how to use these in my main project. Is ASPagerNode already released?

Also, I noticed that there was a build failure due to the relative position layout spec I created as its not included in the snapshot tests. Is this easily resolved? Or do I need to remove the new spec and rewrite that part of the layout?

@appleguy
Copy link
Copy Markdown
Contributor

@stowy no rush, but if you could fix the merge conflict, that might even surface what was causing the build issue (since this is mostly a new project, anything that's conflicting with a change in the rest of the framework may be the thing that needs to be removed to fix the build from failing on the new layout spec). If you could either put up the layout spec in a new PR, or probably better just send the implementation files to me so I could do it for you (if my assumption is correct that you're time-pressured right now), that would be awesome!

@appleguy appleguy changed the title Cat Deals example project for review [Example App] New sample that uses a network-loading collection view on iPhone and iPad. Jan 23, 2016
@stowy stowy force-pushed the stowy/asdk_cat_sample branch from 8b38681 to 3b4785c Compare January 23, 2016 22:51
@stowy
Copy link
Copy Markdown
Contributor Author

stowy commented Jan 23, 2016

@appleguy just pushed a squashed commit with the code fixed up - there were some references to the layout spec that i deleted still hanging around. Since it's now only new files then the tests should all pass. Will create a separate PR with the layout spec, once one or the other are integrated i can revise the sample to use the layout spec again.

@appleguy appleguy added this to the 1.9.6 milestone Jan 24, 2016
@appleguy
Copy link
Copy Markdown
Contributor

@stowy awesome, thanks for pushing this through!

appleguy added a commit that referenced this pull request Jan 24, 2016
[Example App] New sample that uses a network-loading collection view on iPhone and iPad.
@appleguy appleguy merged commit ae68f18 into facebookarchive:master Jan 24, 2016
@appleguy appleguy deleted the stowy/asdk_cat_sample branch January 24, 2016 04:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants