widgetkit

Document Apple's WidgetKit framework APIs and timeline provider implementations.

299|16|Updated Feb 19, 2026
One-click install
npx skills add https://github.com/Prisma-Labs-Dev/apple-skills --skill widgetkit-prisma-labs-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: widgetkit
Source: https://github.com/Prisma-Labs-Dev/apple-skills/tree/main/skills/widgetkit
Command: npx skills add https://github.com/Prisma-Labs-Dev/apple-skills --skill widgetkit-prisma-labs-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for WidgetKit, helping developers navigate the complexities of widget timelines, providers, and configuration without constantly switching to external documentation.

Core Features & Use Cases

  • API Reference: Instant access to WidgetKit protocols, configuration types, and rendering modes.
  • Timeline Management: Guidance on implementing TimelineProvider, managing refresh policies, and handling snapshot requests.
  • Use Case: When building a new home screen widget, use this Skill to quickly verify the correct implementation of a TimelineProvider or to look up supported widget families for specific platforms.

Quick Start

Search the widgetkit documentation for the steps required to implement a custom TimelineProvider for a new widget extension.

Frequently Asked Questions about widgetkit

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

FAQPage Schema
How do I implement a TimelineProvider for a home screen widget in SwiftUI?

To implement a TimelineProvider for a home screen widget, you must conform to the TimelineProvider protocol and provide snapshot and timeline entries to define rendering modes and background refresh policies.

What are the supported widget families for lock screen widgets in WidgetKit?

WidgetKit supports various configuration types and widget families for lock screen widgets, which can be verified by looking up supported widget families for specific platforms within the API reference.

How does the WidgetKit timeline refresh policy work?

The WidgetKit timeline refresh policy works by managing background refresh policies through a TimelineProvider, handling snapshot requests, and determining when the system requests new timeline entries to update widget rendering.

Can I use WidgetKit to build Live Activities on iOS?

Yes, you can use WidgetKit to build Live Activities on iOS by utilizing the framework's provided configuration strategies, entry protocols, and timeline providers to manage real-time rendering modes.

What is the difference between snapshot and timeline entries in a WidgetKit provider?

In a WidgetKit provider, snapshot entries provide a single representative view for quick rendering, while timeline entries define a sequence of future states to manage the widget lifecycle and background refresh policies.