Layout Modifiers

Tell a view how to arrange itself within a view hierarchy by adjusting its size, position, alignment, padding, and so on. ビューにどのようにそれ自身をビュー階層内で整えるか伝えます、それの大きさ、位置、整列、詰め、その他を調整することによって。

Overview 概要

Use layout modifiers to fine tune the placement of views in a view hierarchy. You can adjust or constrain the size, position, and alignment of a view. You can also add padding around a view, and indicate how the view interacts with system-defined safe areas.

Before using these modifiers, be sure establish the basic arrangement of views using layout containers, like stacks and grids, described in Layout Containers.

Topics 話題

Essentials 要点

Size

Position

Alignment

Padding

Safe Area

Layer Order

See Also 参照

Drawing Views