Skip to content

Commit

Permalink
Fix & update ASCollectionNode constrained size doc. (TextureGroup#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
ay8s authored and mikezucc committed Oct 2, 2018
1 parent dc7a8e0 commit 4625069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/_docs/containers-ascollectionnode.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ As discussed in the <a href = "containers-astablenode.html">previous section</a>

Right now, cells will grow to fit their constrained size and will be laid out by whatever `UICollectionViewLayout` you provide.

Soon, there will be a method such as `ASTableNode`'s `-constrainedSizeForRow:` but at the moment, if you'd like to constrain the size of a cell used in a collection node, you need to wrap your layoutSpec object in an `ASStaticLayoutSpec` and provide it with a
You can also constrain cells used in a collection node using `ASCollectionNode`'s `-constrainedSizeForItemAtIndexPath:`.

### Examples

Expand All @@ -225,4 +225,4 @@ The most detailed example of laying out the cells of an `ASCollectionNode` is th

Note that these UIKit cells will **not** have the performance benefits of `ASCellNodes` (like preloading, async layout, and async drawing), even when mixed within the same `ASCollectionNode`.

However, this interoperability allows developers the flexibility to test out the framework without needing to convert all of their cells at once. Read more <a href="uicollectionviewinterop.html">here</a>.
However, this interoperability allows developers the flexibility to test out the framework without needing to convert all of their cells at once. Read more <a href="uicollectionviewinterop.html">here</a>.

0 comments on commit 4625069

Please sign in to comment.