Contents

Layout adjustments

Make fine adjustments to alignment, spacing, padding, and other layout parameters.

Overview

Layout containers like stacks and grids provide a great starting point for arranging views in your app’s user interface. When you need to make fine adjustments, use layout view modifiers. 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.

[Image]

To get started with a basic layout, see Layout fundamentals. For design guidance, see Layout in the Human Interface Guidelines.

Topics

Fine-tuning a layout

Adding padding around a view

Influencing a view’s size

Adjusting a view’s position

Aligning views

Setting margins

Staying in the safe areas

Setting a layout direction

Reacting to interface characteristics

Accessing edges, regions, and layouts

See Also

View layout