Contents

App extensions

Extend your app’s basic functionality to other parts of the system, like by adding a Widget.

Overview

Use SwiftUI along with WidgetKit to add widgets to your app.

[Image]

Widgets provide quick access to relevant content from your app. Define a structure that conforms to the Widget protocol, and declare a view hierarchy for the widget. Configure the views inside the widget as you do other SwiftUI views, using view modifiers, including a few widget-specific modifiers.

For design guidance, see Widgets in the Human Interface Guidelines.

Topics

Creating widgets

Composing control widgets

Labeling a widget

Styling a widget group

Controlling the accented group

Managing placement in the Dynamic Island

See Also

App structure