Layout Containers

Arrange views horizontally and vertically inside container views like stacks and grids.

Overview 概要

Use layout containers to arrange the elements of your user interface. Stacks and grids update and adjust the positions of the child views they contain in response to changes in content or interface dimensions. You can nest layout containers inside other layout containers to any depth to achieve complex layout effects.

To fine tune the position, alignment, and other elements of a layout that you build with layout container views, use the view modifiers in Layout Modifiers. If you need a container view that provides more sophisticated behaviors, like a list or a table, see Collection Containers.

Topics 話題

Essentials 要点

Stacks

Lazy Stacks

Grids

Separators

Alignment

Edges and Regions

See Also 参照

View Containers