Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed lost images to existing one. #trivial #981

Merged
merged 1 commit into from
Jul 20, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_docs/automatic-layout-containers.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Texture includes a library of `layoutSpec` components that can be composed to de

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">
<img src="http://texturegroup.org/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#aslayoutable-properties">ASLayoutable properties</a> may be applied to `ASLayoutable` objects to create complex UI designs.

Expand Down Expand Up @@ -184,7 +184,7 @@ An overlay spec requires the underlay object (object to which the overlay item w

An inset spec requires its object to have an intrinsic size. It adds the inset padding to this size to calculate the final size of the inset spec.

<img src="/static/images/overlay-vs-inset-spec.png">
<img src="http://texturegroup.org/static/images/overlay-vs-inset-spec.png">

### Best Practices
- Texture layout is called on a background thread. Do not access the device screen bounds, or any other UIKit methods in `layoutSpecThatFits:`.
Expand Down