widgetkit

Develop interactive WidgetKit widgets for Apple platforms with SwiftUI and App Intents.

10|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/ios-agent/iosagent.dev --skill widgetkit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: widgetkit
Source: https://github.com/ios-agent/iosagent.dev/tree/main/widgetkit
Command: npx skills add https://github.com/ios-agent/iosagent.dev --skill widgetkit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the creation of dynamic, glanceable information widgets for iOS, iPadOS, macOS, and watchOS, enhancing user experience by providing timely updates directly on the user's device.

Core Features & Use Cases

  • Widget Creation: Design and implement widgets for various platforms and families.
  • Live Activities: Build real-time updates for the Lock Screen and Dynamic Island.
  • Interactivity: Add buttons, toggles, and deep links to widgets.
  • Use Case: Develop a weather widget that displays the current temperature and a 3-day forecast on the user's home screen, updating automatically throughout the day.

Quick Start

Create a new Widget Extension target in Xcode and implement the Widget protocol with a StaticConfiguration and a TimelineProvider.

Frequently Asked Questions about widgetkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create interactive widgets for iOS and watchOS?

You can build interactive widgets for iOS and watchOS using WidgetKit and SwiftUI. The framework supports adding buttons and toggles directly to widgets, allowing users to trigger actions without opening the main app.

How do I show real-time updates on the Lock Screen and Dynamic Island?

To display real-time updates on the Lock Screen and Dynamic Island, implement Live Activities using ActivityKit. This feature allows your app to present glanceable, dynamic information directly on the user's screen.

Can I use App Intents to configure widget families in SwiftUI?

Yes, App Intents integrate with WidgetKit to enable user configuration of widgets. This allows users to customize their widgets across various supported families on iOS, iPadOS, and macOS.

What is the best way to build a widget that updates automatically throughout the day?

The best way to build automatically updating widgets is by implementing a TimelineProvider with your Widget configuration. This provider dictates when the system refreshes your widget's glanceable content.

Does WidgetKit support developing widgets for macOS and iPadOS?

Yes, WidgetKit supports developing glanceable widgets across iOS, iPadOS, macOS, and watchOS. You can use a single SwiftUI codebase to render UI across all these platforms.

How do I add deep links to watchOS complications and home screen widgets?

You can add deep links to widgets and watchOS complications by associating URLs with interactive elements. This enables users to tap the widget to navigate directly to specific views within your app.