What problem does it solve?
Hand-writing realistic preview data and multi-variant #Preview blocks for SwiftUI views is tedious, so most views only get a single happy-path preview that never exposes empty, error, dark-mode, or large-text layout bugs.
Core Features & Use Cases
- Sample Data Generation: Creates a
.preview namespace per model with realistic instances plus edge cases (empty, single item, long strings, missing images, large lists), reusing existing Model.fixture() factories when present.
- Preview Matrix Generation: Emits #Preview blocks across data states (loaded/empty/loading/error), light/dark, Dynamic Type, locale/RTL, and device sizes, scaled to the view's complexity.
- Modern API Support: Detects the deployment target and uses #Preview macros, PreviewModifier for cached shared data, @Previewable for state, seeded in-memory SwiftData containers, or PreviewProvider fallbacks for older targets.
- Use Case: You have an ArticleListView backed by SwiftData and want to prototype it. The skill generates Article+Preview.swift with edge-case data, a cached PreviewModifier with a seeded in-memory container, and seven #Preview variants covering all states, dark mode, XXL text, and German localization.
Quick Start
Ask the AI to add previews with sample data for your SwiftUI view, covering empty, loading, error, and loaded states plus dark mode and large Dynamic Type.