mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-04-24 03:45:58 +08:00
Update automatic-layout-containers.md
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user