widgetkit

Search WidgetKit documentation for widget development questions.

Updated Apr 27, 2026
One-click install
npx skills add https://github.com/annurdien/skills --skill widgetkit-annurdien
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: widgetkit
Source: https://github.com/annurdien/skills/tree/main/widgetkit
Command: npx skills add https://github.com/annurdien/skills --skill widgetkit-annurdien

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

WidgetKit developers often need quick access to official docs to implement timelines, providers, and widget behavior across Apple platforms.

Core Features & Use Cases

  • Central references to TimelineProvider, TimelineEntry, placeholder, and getTimeline/getSnapshot lifecycle.
  • Quick-start guidance for common widget development tasks and debugging across iOS, iPadOS, macOS, watchOS, and visionOS.
  • Pointers to essential documentation like WidgetCenter and AppIntentTimelineProvider for advanced timelines.

Quick Start

Ask specific WidgetKit questions and receive the most relevant doc references and concise explanations.

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 WidgetKit widget?

To implement a TimelineProvider for WidgetKit, you need to define a provider struct that conforms to the TimelineProvider protocol and supply TimelineEntry objects to drive widget updates. This Skill provides direct references to the getTimeline and getSnapshot lifecycle methods required to populate the timeline.

What is a TimelineEntry in WidgetKit and how does it work?

A TimelineEntry in WidgetKit defines the date and data needed to render a widget at a specific moment. This Skill helps you locate the official definitions and usage patterns for TimelineEntry so you can structure your widget's state correctly.

Does WidgetKit support widget development across iOS, iPadOS, macOS, watchOS, and visionOS?

Yes, WidgetKit supports widget development across iOS, iPadOS, macOS, watchOS, and visionOS. This Skill offers quick-start guidance and debugging references for common widget tasks across all these Apple platforms.

How do I use WidgetCenter to reload widget timelines?

You use WidgetCenter to trigger timeline reloads for your widgets from your app's code. This Skill provides pointers to the essential WidgetCenter documentation needed to manage and refresh widget timelines programmatically.

What is the best way to configure widgets with AppIntentTimelineProvider?

The best way to configure interactive widgets is by using AppIntentTimelineProvider to bind user intents to your timeline generation logic. This Skill directs you to the advanced documentation for AppIntentTimelineProvider to help you implement configurable widget behaviors.

Why do I need a placeholder in WidgetKit and how do I create one?

You need a placeholder in WidgetKit to display a generic version of your widget while the system loads actual data. This Skill retrieves the official documentation references for creating placeholders and understanding their role in the widget rendering lifecycle.