Contents

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.

To get started arranging views, see Layout fundamentals. To make adjustments to a basic layout, see Layout adjustments.

Topics

Size

Position

Alignment

Padding and spacing

Grid configuration

Safe area and margins

Arrangement views

Layer order

Layout direction

Custom layout characteristics

See Also

Drawing views