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

Conversation

samhsiung
Copy link
Contributor

It felt cumbersome to repeatedly specify the direction of an ASStackLayoutSpec so I thought it'd be nice to provide these convenience classes. I also ran into cases where I named an ASStackLayoutSpec as a verticalStack or horizontalStack but forgot to set it's direction causing me to waste time debugging.

@levi
Copy link
Contributor

levi commented Oct 30, 2015

Might be a better alternative to add an extra initializer to define the direction or a class method on ASStackLayoutSpec.

@samhsiung samhsiung force-pushed the name_stacks branch 2 times, most recently from a468477 to bdf7dc2 Compare October 30, 2015 03:02
@samhsiung
Copy link
Contributor Author

Good idea, added class methods instead.

@samhsiung samhsiung changed the title adds ASVerticalStackLayoutSpec and ASHorizontalStackLayoutSpec adds convenience methods to return a vertical and horizontal stack spec Oct 30, 2015
@appleguy
Copy link
Contributor

I agree with @levi's suggestion, so thanks for jumping on that @samhsiung. This is implemented cleanly — even if the stack is subclassed by a public client, using [self alloc] and instancetype will ensure correct behavior. Cool!

appleguy added a commit that referenced this pull request Oct 31, 2015
adds convenience methods to return a vertical and horizontal stack spec
@appleguy appleguy merged commit ae692be into facebookarchive:master Oct 31, 2015
aimalygin pushed a commit to aimalygin/AsyncDisplayKit that referenced this pull request Feb 19, 2018
…rchive#796)

* Add scrollViewWillEndDragging delegate

* Make sure delegate can respond to scrollViewWillEndDragging

* Add changes to CHANGELOG.md
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.

4 participants