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
Building Widgets Using WidgetKit and SwiftUICreating a widget extensionKeeping a widget up to dateMaking a configurable widgetWidgetWidgetBundleLimitedAvailabilityConfigurationWidgetConfigurationEmptyWidgetConfiguration
Composing control widgets
ControlWidgetControlWidgetConfigurationEmptyControlWidgetConfigurationControlWidgetConfigurationBuilderControlWidgetTemplateEmptyControlWidgetTemplateControlWidgetTemplateBuildercontrolWidgetActionHint(_:)controlWidgetStatus(_:)