Summary: WeViews have a number of built-in layouts, but most layouts can and should be built using just the horizontal and vertical layouts.
WeView Layouts have two responsibilities:
WeView supports the following layouts:
The Horizontal layout (shown here with top, center and bottom vertical alignment) lays out its subviews horizontally, left-to-right.
You can build 95% of most UIs using just the horizontal and vertical layouts.
The Vertical layout (shown here with left, center and right horizontal alignment) lays out its subviews horizontally, top-to-bottom.
The Stack layout (shown here with a variety of alignments) lays out its subviews on top of each other in a stack. Useful for positioning single subviews.
The Flow layout (shown here with left & v-center alignment at a variety of sizes) lays out its subviews in a text-like flow, in horizontal lines that wrap at the edge of the superview.
The Block-based layout can be used for unusual layouts.
There is also a Grid layout in the works.
You can also create your own layout by subclassing WeViewLayout.
Next: Tutorial 9: Grid Layout