Update automatic-layout-containers.md

This commit is contained in:
Hannah Troisi
2016-07-11 00:06:04 -07:00
committed by GitHub
parent 6fafa6f855
commit 1e0ef089d3

View File

@@ -8,7 +8,7 @@ nextPage: automatic-layout-examples.html
AsyncDisplayKit includes a library of `layoutSpec` components that can be composed to declaratively specify a layout. The **child(ren) of a layoutSpec may be a node, a layoutSpec or a combination of the two types.** In the below image, an ASStackLayoutSpec (vertical) containing a text node and an image node, is wrapped in another ASStackLayoutSpec (horizontal) with another text node.
<img src="/static/images/layoutable-types.png" width="90%" height="90%">
<img src="/static/images/layoutable-types.png">
Both nodes and layoutSpecs conform to the `<ASLayoutable>` protocol. Any `ASLayoutable` object may be the child of a layoutSpec. <a href = "automatic-layout-containers.html#layoutable-properties">ASLayoutable properties</a> may be applied to ASLayoutable objects to create complex UIs.