Contents

SwiftUI views for widgets

Present your app’s content in widgets with SwiftUI views.

Overview

Widgets can use many, but not all, SwiftUI views to present content. Use the views listed below to implement your widget’s view.

Topics

Displaying text

Showing images

Adding interaction

Adding labels and links

Stacking views

Arranging views in grids

Enumerating lists

Grouping views

Representing hierarchies

Adding spacers and dividers

Handling conditional views

Displaying shapes

Transforming views

Styling views

Creating 2D graphics

Managing view geometry

Substituting views

See Also

Presentation