What problem does it solve?
Automates the creation of WidgetKit widget code scaffolding, including timeline providers, size-specific views, and App Intent configuration to accelerate building home screen and lock screen widgets.
Core Features & Use Cases
- Widget scaffolding generation: Produces {Name}Widget.swift, {Name}TimelineProvider.swift, {Name}Entry.swift, {Name}WidgetViews.swift, {Name}AppIntent.swift, and updates WidgetBundle as needed.
- Configurable UI via App Intents: Generates App Intent structures and timeline providers for interactive/configurable widgets (iOS 17+).
- Bundle registration & testing guidance: Ensures widget(s) are registered in a WidgetBundle and provides testing steps for preview and deployment.
- Use Case: Quickly add a new WidgetKit widget to an app, including interactive and lock screen variants, with consistent file structure and deployment readiness.
Quick Start
Use the widget-generator to scaffold a WidgetKit widget project by answering configuration prompts.