[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FV1JV39D52F1RP6GFZJMW":3,"skill-same:01M78FV1JV39D52F1RP6GFZJMW":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":28,"commitSha":29,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M78FV1JV39D52F1RP6GFZJMW","designer-swiftui",null,"Design principles for building polished, native-feeling SwiftUI apps and widgets. Use this skill when creating or modifying SwiftUI views, iOS widgets (WidgetKit), or any native Apple UI. Ensures proper spacing, typography, colors, and widget implementations that look and feel like quality apps rather than AI-generated slop.","himanshu-dixit\u002Fpersonal_skills","himanshu-dixit","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6849438?v=4","01M78FPS730FSH749X3BMEC4WD","Himanshu Dixit","01M78FPS7R4TD1GXA2SG8YARZY",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fdesigner-swiftui\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fdesigner-swiftui\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: designer-swiftui\ndescription: Design principles for building polished, native-feeling SwiftUI apps and widgets. Use this skill when creating or modifying SwiftUI views, iOS widgets (WidgetKit), or any native Apple UI. Ensures proper spacing, typography, colors, and widget implementations that look and feel like quality apps rather than AI-generated slop.\nlicense: MIT\nmetadata: \nauthor: arjitj2\nversion: 1.1.1\ndisable-model-invocation: true\n---\n\nThis skill encodes design principles derived from comparing polished, production-quality SwiftUI apps against poorly-built ones. The patterns here represent what separates an app that feels \"right\" from one where the margins, spacing, and text sizes just look \"off.\"\n\nApply these principles whenever building or modifying SwiftUI interfaces, WidgetKit widgets, or any native Apple UI.\n\n## Core Philosophy\n\n**Restraint over decoration.** Every pixel must earn its place. A polished app uses fewer colors, fewer font sizes, fewer spacing values, and fewer words — but uses them consistently. Over-engineering visual elements (custom gradients, decorative borders, bespoke dividers) creates visual noise. Native components and system colors create harmony.\n\n**Attention is scarce.** Keep UI copy shorter than you think it needs to be. Prefer one clear headline and one compact supporting block over repeated explanation in the title, subtitle, body, and footer. If a screen needs rationale, put it in one purposeful place instead of scattering it across the page.\n\n---\n\n## 1. Spacing System: Use a Consistent Grid\n\n**CRITICAL**: Use spacing values from a base-4\u002Fbase-8 grid. Never use arbitrary values.\n\n### Allowed spacing values\n```\n4, 8, 12, 16, 20, 24, 32, 40, 48\n```\n\n### Bad (arbitrary values that create visual dissonance)\n```swift\n\u002F\u002F WRONG - these numbers have no relationship to each other\n.padding(.bottom, 26)\n.padding(.bottom, 34)\n.padding(.bottom, 36)\nHStack(spacing: 18)\n.padding(14)\n```\n\n### Good (values from a consistent grid)\n```swift\n\u002F\u002F RIGHT - predictable rhythm the eye can follow\n.padding(.horizontal, 20)\n.padding(.top, 8)\nSpacer().frame(height: 32)\nHStack(spacing: 4)  \u002F\u002F or 8, 12, 16\n.padding(.vertical, 12)\n.padding(.horizontal, 16)\n```\n\n### Standard padding assignments\n- **Outer content padding**: 16-20pt horizontal\n- **Between major sections**: 24-32pt vertical\n- **Within grouped components**: 4-12pt\n- **Card\u002Frow internal padding**: 12-16pt vertical, 16pt horizontal\n\n---\n\n## 2. Typography: Hierarchy Through Weight, Not Just Size\n\n### The principle\nUse **fewer font sizes** with **clear weight differentiation**. Lighter weights at larger sizes; medium\u002Fregular at smaller sizes. This creates sophistication rather than visual chaos.\n\n### Recommended type scale (for a data-focused app)\n| Role | Size | Weight | Notes |\n|------|------|--------|-------|\n| Hero number | 36-42pt | `.light` | Large but visually light -- elegant, not heavy |\n| Secondary stat | 20-24pt | `.light` | Same weight family as hero, smaller |\n| Body \u002F toggle label | 15pt | `.regular` | Standard iOS body size |\n| Section header (uppercase) | 11pt | `.medium` | With tracking\u002Fletter-spacing |\n| Caption \u002F subtitle | 11-13pt | `.regular` | Secondary information |\n\n### Bad (too many sizes, inconsistent weights)\n```swift\n\u002F\u002F WRONG - 7 different sizes with no clear system\n.font(.system(size: 60, weight: .ultraLight))   \u002F\u002F hero\n.font(.system(size: 44, weight: .regular))        \u002F\u002F stat (too close to hero)\n.font(.system(size: 31, weight: .ultraLight))     \u002F\u002F percent symbol (odd ratio)\n.font(.system(size: 18, weight: .regular))        \u002F\u002F label (too big for a toggle)\n.font(.system(size: 14, weight: .regular))        \u002F\u002F header\n.font(.system(size: 13, weight: .regular))        \u002F\u002F another header\n.font(.system(size: 12, weight: .regular))        \u002F\u002F button (too small to read)\n```\n\n### Good (clear hierarchy, fewer sizes)\n```swift\n\u002F\u002F RIGHT - 5 sizes, clear purpose for each\n.font(.system(size: 42, weight: .light, design: .monospaced))    \u002F\u002F hero\n.font(.system(size: 24, weight: .light, design: .monospaced))    \u002F\u002F stat value\n.font(.system(size: 15, weight: .regular, design: .monospaced))  \u002F\u002F body\n.font(.system(size: 14, weight: .regular, design: .monospaced))  \u002F\u002F secondary\n.font(.system(size: 11, weight: .medium, design: .monospaced))   \u002F\u002F label\n```\n\n### Font design consistency\nPick ONE font design and use it everywhere -- app AND widgets:\n```swift\n\u002F\u002F If using monospaced, use it everywhere\ndesign: .monospaced  \u002F\u002F app views, widgets, lock screen -- all of them\n\n\u002F\u002F NEVER mix designs between app and widgets\n\u002F\u002F BAD: .monospaced in app, .rounded in lock screen widget\n```\n\n### Letter spacing (tracking)\nUse at most 2 values, and only on uppercase labels:\n```swift\n.tracking(1.5)  \u002F\u002F section labels: \"NOTIFICATIONS\", \"DAY\", \"LEFT\"\n.tracking(3)    \u002F\u002F navigation\u002Ftoolbar titles\n```\n\n**Never use 3+ different tracking values** like `kerning(4)`, `kerning(4.5)`, `kerning(5)` -- the differences are imperceptible but the inconsistency registers subconsciously.\n\n### Numeric formatting for identifiers\nYears and other fixed identifiers should not be locale-grouped.\n```swift\n\u002F\u002F RIGHT - stable, non-grouped identifier text\nText(String(year))                  \u002F\u002F \"2026\"\nText(year, format: .number.grouping(.never))\n\n\u002F\u002F WRONG - locale grouping can render \"2,026\"\nText(\"\\(year)\")\n```\n\n---\n\n## 3. Colors: System Semantic Colors Over Hardcoded Values\n\n### The principle\nUse SwiftUI's semantic color system. It automatically handles light\u002Fdark mode, accessibility, and looks native. Hardcoded colors with manual opacity values create maintenance nightmares and look artificial.\n\n### Bad (hardcoded white with a dozen opacity values)\n```swift\n\u002F\u002F WRONG - impossible to maintain, doesn't adapt to light mode\nColor.black.ignoresSafeArea()           \u002F\u002F forced dark\nColor.white.opacity(0.08)               \u002F\u002F ring background\nColor.white.opacity(0.09)               \u002F\u002F divider\nColor.white.opacity(0.3)                \u002F\u002F year text\nColor.white.opacity(0.32)               \u002F\u002F stat label\nColor.white.opacity(0.42)               \u002F\u002F percent symbol\nColor.white.opacity(0.44)               \u002F\u002F toggle tint\nColor.white.opacity(0.72)               \u002F\u002F button text\nColor.white.opacity(0.88)               \u002F\u002F toggle label\nColor.white.opacity(0.9)                \u002F\u002F stat value\nColor.white.opacity(0.94)               \u002F\u002F ring fill\n```\n\n### Good (semantic system colors)\n```swift\n\u002F\u002F RIGHT - adapts automatically, looks native, easy to maintain\nColor(.systemBackground)                 \u002F\u002F main background\nColor(.secondarySystemBackground)        \u002F\u002F card\u002Fgroup backgrounds\nColor(.separator)                        \u002F\u002F dividers (with optional opacity)\nColor.primary                            \u002F\u002F primary text and UI elements\n.foregroundStyle(.secondary)              \u002F\u002F secondary text\n.foregroundStyle(.tertiary)               \u002F\u002F labels, captions\n```\n\n### When you do need opacity\nLimit to 2-3 values with clear purposes:\n```swift\n.opacity(0.15)  \u002F\u002F subtle background strokes\n.opacity(0.3)   \u002F\u002F separator lines\n\u002F\u002F That's it. If you need more, you're probably hardcoding what semantic colors handle.\n```\n\n---\n\n## 4. Component Sizing: Proportional, Not Oversized\n\n### Progress rings \u002F circular indicators\n```swift\n\u002F\u002F App main view: 200x200 with thin stroke\n.frame(width: 200, height: 200)\nCircle().stroke(..., lineWidth: 3)\n\n\u002F\u002F Widget (systemSmall): 90x90, same stroke\n.frame(width: 90, height: 90)\nCircle().stroke(..., lineWidth: 3)\n\n\u002F\u002F WRONG: oversized ring with thick inconsistent strokes\n.frame(width: 260, height: 260)    \u002F\u002F too large, dominates screen\nCircle().stroke(..., lineWidth: 9)  \u002F\u002F background\nCircle().stroke(..., lineWidth: 8)  \u002F\u002F fill -- WHY different from background?\n```\n\n### Stroke width consistency\n**Always use the same lineWidth for background and foreground strokes of the same element:**\n```swift\n\u002F\u002F RIGHT\nCircle().stroke(background, lineWidth: 3)\nCircle().trim(from: 0, to: fraction).stroke(fill, lineWidth: 3)\n\n\u002F\u002F WRONG - creates visual misalignment\nCircle().stroke(background, lineWidth: 9)\nCircle().trim(from: 0, to: fraction).stroke(fill, lineWidth: 8)\n```\n\n### List rows and toggle rows\n```swift\n\u002F\u002F RIGHT - natural sizing with proper padding\nToggle(isOn: $value) {\n    Text(title)\n        .font(.system(size: 15, weight: .regular, design: .monospaced))\n}\n.padding(.horizontal, 16)\n.padding(.vertical, 12)\n\n\u002F\u002F WRONG - fixed oversized height\nHStack {\n    Text(label)\n        .font(.system(size: 18))   \u002F\u002F too big for a toggle label\n    Spacer()\n    Toggle(\"\", isOn: $isOn)\n        .labelsHidden()             \u002F\u002F why hide the label? Use Toggle properly\n}\n.frame(height: 70)                  \u002F\u002F way too tall\n```\n\n---\n\n## 5. Grouped Content & Cards: Use System Patterns\n\n### Bad (over-engineered custom card)\n```swift\n\u002F\u002F WRONG - custom gradient, overlay border, huge corner radius\nVStack { ... }\n    .padding(.vertical, 4)              \u002F\u002F too tight\n    .background(\n        RoundedRectangle(cornerRadius: 22)   \u002F\u002F too round\n            .fill(LinearGradient(            \u002F\u002F unnecessary gradient\n                colors: [Color(white: 0.10), Color(white: 0.085)],\n                startPoint: .topLeading, endPoint: .bottomTrailing\n            ))\n    )\n    .overlay(\n        RoundedRectangle(cornerRadius: 22)\n            .stroke(Color.white.opacity(0.08), lineWidth: 1)  \u002F\u002F decorative border\n    )\n```\n\n### Good (native grouped style)\n```swift\n\u002F\u002F RIGHT - simple, native, works in light and dark mode\nVStack(spacing: 0) {\n    row1\n    Divider().padding(.leading, 16)\n    row2\n    Divider().padding(.leading, 16)\n    row3\n}\n.background(Color(.secondarySystemBackground))\n.clipShape(.rect(cornerRadius: 10))\n```\n\n### Key rules for grouped content\n- **Corner radius**: 10pt for cards\u002Fgroups (matches iOS system style). Never 22pt+.\n- **Dividers**: Use the system `Divider()` with `.padding(.leading, 16)` for iOS-standard inset. Never build custom divider structs.\n- **Card padding**: 12-16pt vertical, 16pt horizontal. Never 4pt vertical.\n- **Background**: `Color(.secondarySystemBackground)` -- never custom gradients for standard cards.\n\n---\n\n## 6. Navigation: Use NavigationStack\n\n```swift\n\u002F\u002F RIGHT - proper navigation with minimal toolbar\nNavigationStack {\n    ScrollView {\n        content\n    }\n    .toolbar {\n        ToolbarItem(placement: .principal) {\n            Text(\"Title\")\n                .font(.system(size: 13, weight: .medium, design: .monospaced))\n                .tracking(3)\n                .foregroundStyle(.tertiary)\n        }\n    }\n    .navigationBarTitleDisplayMode(.inline)\n}\n\n\u002F\u002F WRONG - no navigation structure, just a ZStack\nZStack {\n    Color.black.ignoresSafeArea()\n    ScrollView {\n        VStack {\n            Text(\"2026\").font(...) \u002F\u002F manually placed \"title\"\n            content\n        }\n    }\n}\n```\n\n---\n\n## 7. WidgetKit: Use Native Components\n\n### Circular lock screen widget\n```swift\n\u002F\u002F RIGHT - use Gauge, it's purpose-built for this\nGauge(value: entry.fraction) {\n    Text(\"\")\n} currentValueLabel: {\n    Text(\"\\(Int(entry.percentage))%\")\n        .font(.system(size: 12, weight: .medium, design: .monospaced))\n}\n.gaugeStyle(.accessoryCircular)\n.containerBackground(.fill.tertiary, for: .widget)\n\n\u002F\u002F WRONG - manual circle drawing for lock screen\nZStack {\n    Circle().stroke(Color.primary.opacity(0.18), lineWidth: 4)\n    Circle().trim(from: 0, to: progress).stroke(...)\n    Text(percentText)\n        .font(.system(size: 14, weight: .bold, design: .rounded)) \u002F\u002F wrong font design!\n}\n```\n\n### Rectangular lock screen widget\n```swift\n\u002F\u002F RIGHT - use Gauge with linearCapacity\nVStack(alignment: .leading, spacing: 4) {\n    HStack {\n        Text(year).font(.system(size: 13, weight: .semibold, design: .monospaced))\n        Spacer()\n        Text(percentage).font(.system(size: 13, weight: .medium, design: .monospaced))\n            .foregroundStyle(.secondary)\n    }\n    Gauge(value: fraction) { Text(\"\") }\n        .gaugeStyle(.linearCapacity)\n        .tint(.primary)\n    HStack {\n        Spacer()\n        Text(\"\\(dayOfYear)\u002F\\(totalDays)\")\n            .font(.system(size: 11, weight: .regular, design: .monospaced))\n            .foregroundStyle(.secondary)\n    }\n}\n.containerBackground(.fill.tertiary, for: .widget)\n\n\u002F\u002F WRONG - custom GeometryReader progress bar\nGeometryReader { proxy in\n    ZStack(alignment: .leading) {\n        RoundedRectangle(cornerRadius: 2).fill(Color.primary.opacity(0.16))\n        RoundedRectangle(cornerRadius: 2).fill(Color.primary)\n            .frame(width: max(2, proxy.size.width * progress))\n    }\n}\n.frame(height: 6)\n```\n\n### Widget background\n```swift\n\u002F\u002F RIGHT\n.containerBackground(.fill.tertiary, for: .widget)\n\n\u002F\u002F WRONG - hardcoded color\n.containerBackground(.black, for: .widget)\n```\n\n### Widget family coverage\nSupport all relevant families -- don't skip common ones:\n```swift\n.supportedFamilies([\n    .accessoryCircular,      \u002F\u002F lock screen circle\n    .accessoryRectangular,   \u002F\u002F lock screen rectangle\n    .accessoryInline,        \u002F\u002F lock screen inline text\n    .systemSmall,            \u002F\u002F home screen small\n    .systemMedium,           \u002F\u002F home screen medium\n    .systemLarge,            \u002F\u002F home screen large\n])\n```\n\n### Cross-family visual consistency\nMedium and large home widgets should share the same structural layout:\n- Header: year on the left, percentage on the right\n- Middle: progress bar\n- Footer: `day\u002Ftotal` right aligned\n\nDo not re-invent hierarchy per family unless there is a hard size constraint.\n\nAlways include explicit internal padding on home widgets to avoid clipping near rounded edges:\n```swift\n.padding(.horizontal, 12)\n.padding(.vertical, 12)\n```\n\n### Widget memory budget (hard limit)\nWidget extensions have a tight memory budget (commonly around 30 MB). Dense visualizations can be killed by `EXC_RESOURCE` if built from too many nested views.\n\n```swift\n\u002F\u002F RIGHT - draw dense dot grids in one pass\nCanvas { context, size in\n    \u002F\u002F draw 365\u002F366 dots here\n}\n\n\u002F\u002F WRONG - hundreds of nested subviews (high memory overhead)\nLazyVGrid(columns: columns) {\n    ForEach(1...366, id: \\.self) { day in\n        ZStack { Circle(); partialFillLayer }\n    }\n}\n```\n\n### Timeline refresh (match data granularity)\n```swift\n\u002F\u002F RIGHT - refresh at midnight for day-level data\nlet tomorrow = calendar.startOfDay(for: calendar.date(byAdding: .day, value: 1, to: now)!)\nTimeline(entries: [entry], policy: .after(tomorrow))\n\n\u002F\u002F RIGHT - periodic refresh for time-of-day dependent percentages\u002Fpartial fills\nlet refresh = Calendar.current.date(byAdding: .minute, value: 15, to: now)!\nTimeline(entries: [entry], policy: .after(refresh))\n\n\u002F\u002F WRONG - minute-level refresh for static daily data\nlet tooFrequent = Calendar.current.date(byAdding: .minute, value: 1, to: now)!\nTimeline(entries: [entry], policy: .after(tooFrequent))\n```\n\n---\n\n## 8. Interactive Elements\n\n### Toggles\n```swift\n\u002F\u002F RIGHT - use Toggle with its built-in label, tint with a single accent color\nToggle(isOn: $value) {\n    Text(title)\n        .font(.system(size: 15, weight: .regular, design: .monospaced))\n}\n.tint(.green)\n\n\u002F\u002F WRONG - hidden label with manual HStack layout\nHStack {\n    Text(label).font(.system(size: 18))\n    Spacer()\n    Toggle(\"\", isOn: $isOn)\n        .labelsHidden()\n        .tint(Color.white.opacity(0.44))  \u002F\u002F low-contrast tint\n}\n```\n\n### Mutually exclusive options\nWhen options are exclusive (e.g. daily\u002Fweekly\u002Fmonthly cadence), use one selected value, not three independent toggles.\n\n```swift\n\u002F\u002F RIGHT - single source of truth\nenum Cadence: String, CaseIterable { case daily, weekly, monthly }\n@State private var cadence: Cadence = .daily\n\nForEach(Cadence.allCases, id: \\.rawValue) { option in\n    Button {\n        cadence = option\n    } label: {\n        HStack {\n            Image(systemName: cadence == option ? \"checkmark.circle.fill\" : \"circle\")\n            Text(option.rawValue.capitalized)\n        }\n    }\n}\n\n\u002F\u002F RIGHT - one preview action when content is shared\nButton(\"Preview\") { sendPreview() }\n\n\u002F\u002F WRONG - independent toggles allow contradictory state\nToggle(\"Daily\", isOn: $daily)\nToggle(\"Weekly\", isOn: $weekly)\nToggle(\"Monthly\", isOn: $monthly)\n```\n\n### Animated transitions for changing numbers\n```swift\n\u002F\u002F Add to any Text that displays a changing numeric value\nText(String(format: \"%.2f\", percentage))\n    .contentTransition(.numericText())\n```\n\n---\n\n## 9. Interactive Editors: Centralize Geometry and State\n\nInteractive editors (collages, crops, canvases, media framing tools, layout pickers) need stricter state and layout discipline than ordinary forms.\n\n### Presentation state\nPresent editor flows from payload state, not from a separate `Bool` plus independently-managed data.\n\n```swift\n\u002F\u002F RIGHT - presentation only happens when payload exists\n@State private var activeCropRequest: CropRequest?\n\n.sheet(item: $activeCropRequest) { request in\n    CropEditor(request: request)\n}\n\n\u002F\u002F WRONG - the sheet can open before the backing data is ready\n@State private var showCropEditor = false\n@State private var selectedImage: UIImage?\n\n.sheet(isPresented: $showCropEditor) {\n    if let selectedImage { CropEditor(image: selectedImage) }\n}\n```\n\n### Shared geometry model\nIf the app previews pan\u002Fzoom\u002Fcrop\u002Flayout live and later exports the result, use one shared geometry model for both preview and render.\n\n```swift\n\u002F\u002F RIGHT - one source of truth for bounds and transforms\nlet normalized = EditorGeometry.normalizedAdjustment(adjustment, imageSize: image.size, slotSize: slotSize)\nlet drawRect = EditorGeometry.drawRect(for: image.size, in: slotRect, adjustment: adjustment)\n\n\u002F\u002F WRONG - preview and export each invent their own math\nlet previewOffset = ...\nlet exportOffset = ...\n```\n\nIf a user can zoom out enough to reveal background, that must be an intentional part of the shared geometry model, not an editor-only exception.\n\n### Gesture coordination\nTap, long-press-drag, and pinch are not independent features. In SwiftUI they compete unless you model their relationship explicitly.\n\n- Use a single interaction state for the active tile\u002Fcard\u002Fcanvas item.\n- Decide which gesture has priority and which ones should run simultaneously.\n- Reset temporary gesture state deliberately when selection changes.\n- Prefer one coherent state machine over scattered booleans tied to individual gestures.\n\n### Fixed editor layout\nIf the screen must not scroll, budget vertical space top-down using a few named regions:\n- header\n- canvas stage\n- settings region\n- bottom toolbar\n\nKeep that sizing math in one place. Don't let each subview invent its own height.\n\n### Custom headers and safe areas\nIf you replace the system navigation bar with a custom header:\n- Be explicit about whether the parent already respects the safe area.\n- Do not add `safeAreaInsets.top` reflexively; double-counting it creates obvious dead space.\n- Keep custom headers compact. They should feel like navigation chrome, not a full content section.\n\n### Settings surfaces\nWhen an editor has several configuration modes (`Layout`, `Border`, `Ratio`, `Background`, etc.), show one active settings surface at a time instead of stacking every control on screen.\n\nThis keeps the canvas visually dominant and makes each control group easier to understand.\n\n---\n\n## 10. Data Model: Share Between App and Widgets\n\n```swift\n\u002F\u002F RIGHT - one model used everywhere\nstruct YearProgress {\n    \u002F\u002F shared calculation logic\n    static func current() -> YearProgress { ... }\n}\n\u002F\u002F Used by both ContentView and widget TimelineProvider\n\n\u002F\u002F If percentage is shown as live progress, include time-of-day in shared math\nlet dayProgress = elapsedInCurrentDay \u002F totalSecondsInDay\nlet elapsedDays = Double(dayOfYear - 1) + dayProgress\nlet fraction = elapsedDays \u002F Double(totalDays)\n\n\u002F\u002F WRONG - separate snapshot structs with duplicated date math\nstruct YearProgressSnapshot { ... }            \u002F\u002F in app\nstruct YearProgressWidgetSnapshot { ... }      \u002F\u002F in widget extension (duplicated!)\n```\n\n---\n\n## 11. Quick Checklist\n\nBefore shipping any SwiftUI view, verify:\n\n- [ ] All spacing values come from the grid (4, 8, 12, 16, 20, 24, 32)\n- [ ] Font sizes limited to 5 or fewer distinct values\n- [ ] One font design used consistently (including widgets)\n- [ ] Colors use semantic system colors, not hardcoded values with opacity\n- [ ] Background and foreground strokes use the same lineWidth\n- [ ] Cards use `Color(.secondarySystemBackground)` with 10pt corner radius\n- [ ] Dividers use system `Divider()` with leading padding\n- [ ] Toggle rows use Toggle's built-in label (not `.labelsHidden()`)\n- [ ] Lock screen widgets use `Gauge` (not manual circle drawing)\n- [ ] Widget background uses `.containerBackground(.fill.tertiary, for: .widget)`\n- [ ] Year\u002Fidentifier text avoids locale grouping when grouping is not desired\n- [ ] Tracking\u002Fkerning limited to 2 values max\n- [ ] NavigationStack is used (not bare ZStack)\n- [ ] Timeline refresh rate matches data granularity (midnight vs periodic)\n- [ ] Large\u002Fdense widget visuals use `Canvas` or similarly lightweight rendering\n- [ ] Medium and large widget families share consistent hierarchy and internal padding\n- [ ] Exclusive choices use a single selected value (not multiple toggles)\n- [ ] Percentages include time-of-day when UI implies live progress\n- [ ] No `minimumScaleFactor` hacks -- fix the layout instead\n- [ ] Interactive editors present from payload state, not `Bool` + separate data\n- [ ] Preview and export share the same geometry model for pan\u002Fzoom\u002Fcrop\u002Flayout\n- [ ] Custom headers do not double-count top safe-area inset\n- [ ] No-scroll editor screens budget height through a centralized layout model\n- [ ] Multi-mode editors show one focused settings surface instead of every control at once\n","This skill encodes design principles derived from comparing polished, production-quality SwiftUI apps against poorly-built ones. The patterns here represent what separates an app that feels \"right\" from one where the margins, spacing, and text sizes just look \"off.\"\n\nApply these principles whenever building or modifying SwiftUI interfaces, WidgetKit widgets, or any native Apple UI.\n\n## Core Philosophy\n\n**Restraint over decoration.** Every pixel must earn its place. A polished app uses fewer colors, fewer font sizes, fewer spacing values, and fewer words — but uses them consistently. Over-engineering visual elements (custom gradients, decorative borders, bespoke dividers) creates visual noise. Native components and system colors create harmony.\n\n**Attention is scarce.** Keep UI copy shorter than you think it needs to be. Prefer one clear headline and one compact supporting block over repeated explanation in the title, subtitle, body, and footer. If a screen needs rationale, put it in one purposeful place instead of scattering it across the page.\n\n---\n\n## 1. Spacing System: Use a Consistent Grid\n\n**CRITICAL**: Use spacing values from a base-4\u002Fbase-8 grid. Never use arbitrary values.\n\n### Allowed spacing values\n```\n4, 8, 12, 16, 20, 24, 32, 40, 48\n```\n\n### Bad (arbitrary values that create visual dissonance)\n```swift\n\u002F\u002F WRONG - these numbers have no relationship to each other\n.padding(.bottom, 26)\n.padding(.bottom, 34)\n.padding(.bottom, 36)\nHStack(spacing: 18)\n.padding(14)\n```\n\n### Good (values from a consistent grid)\n```swift\n\u002F\u002F RIGHT - predictable rhythm the eye can follow\n.padding(.horizontal, 20)\n.padding(.top, 8)\nSpacer().frame(height: 32)\nHStack(spacing: 4)  \u002F\u002F or 8, 12, 16\n.padding(.vertical, 12)\n.padding(.horizontal, 16)\n```\n\n### Standard padding assignments\n- **Outer content padding**: 16-20pt horizontal\n- **Between major sections**: 24-32pt vertical\n- **Within grouped components**: 4-12pt\n- **Card\u002Frow internal padding**: 12-16pt vertical, 16pt horizontal\n\n---\n\n## 2. Typography: Hierarchy Through Weight, Not Just Size\n\n### The principle\nUse **fewer font sizes** with **clear weight differentiation**. Lighter weights at larger sizes; medium\u002Fregular at smaller sizes. This creates sophistication rather than visual chaos.\n\n### Recommended type scale (for a data-focused app)\n| Role | Size | Weight | Notes |\n|------|------|--------|-------|\n| Hero number | 36-42pt | `.light` | Large but visually light -- elegant, not heavy |\n| Secondary stat | 20-24pt | `.light` | Same weight family as hero, smaller |\n| Body \u002F toggle label | 15pt | `.regular` | Standard iOS body size |\n| Section header (uppercase) | 11pt | `.medium` | With tracking\u002Fletter-spacing |\n| Caption \u002F subtitle | 11-13pt | `.regular` | Secondary information |\n\n### Bad (too many sizes, inconsistent weights)\n```swift\n\u002F\u002F WRONG - 7 different sizes with no clear system\n.font(.system(size: 60, weight: .ultraLight))   \u002F\u002F hero\n.font(.system(size: 44, weight: .regular))        \u002F\u002F stat (too close to hero)\n.font(.system(size: 31, weight: .ultraLight))     \u002F\u002F percent symbol (odd ratio)\n.font(.system(size: 18, weight: .regular))        \u002F\u002F label (too big for a toggle)\n.font(.system(size: 14, weight: .regular))        \u002F\u002F header\n.font(.system(size: 13, weight: .regular))        \u002F\u002F another header\n.font(.system(size: 12, weight: .regular))        \u002F\u002F button (too small to read)\n```\n\n### Good (clear hierarchy, fewer sizes)\n```swift\n\u002F\u002F RIGHT - 5 sizes, clear purpose for each\n.font(.system(size: 42, weight: .light, design: .monospaced))    \u002F\u002F hero\n.font(.system(size: 24, weight: .light, design: .monospaced))    \u002F\u002F stat value\n.font(.system(size: 15, weight: .regular, design: .monospaced))  \u002F\u002F body\n.font(.system(size: 14, weight: .regular, design: .monospaced))  \u002F\u002F secondary\n.font(.system(size: 11, weight: .medium, design: .monospaced))   \u002F\u002F label\n```\n\n### Font design consistency\nPick ONE font design and use it everywhere -- app AND widgets:\n```swift\n\u002F\u002F If using monospaced, use it everywhere\ndesign: .monospaced  \u002F\u002F app views, widgets, lock screen -- all of them\n\n\u002F\u002F NEVER mix designs between app and widgets\n\u002F\u002F BAD: .monospaced in app, .rounded in lock screen widget\n```\n\n### Letter spacing (tracking)\nUse at most 2 values, and only on uppercase labels:\n```swift\n.tracking(1.5)  \u002F\u002F section labels: \"NOTIFICATIONS\", \"DAY\", \"LEFT\"\n.tracking(3)    \u002F\u002F navigation\u002Ftoolbar titles\n```\n\n**Never use 3+ different tracking values** like `kerning(4)`, `kerning(4.5)`, `kerning(5)` -- the differences are imperceptible but the inconsistency registers subconsciously.\n\n### Numeric formatting for identifiers\nYears and other fixed identifiers should not be locale-grouped.\n```swift\n\u002F\u002F RIGHT - stable, non-grouped identifier text\nText(String(year))                  \u002F\u002F \"2026\"\nText(year, format: .number.grouping(.never))\n\n\u002F\u002F WRONG - locale grouping can render \"2,026\"\nText(\"\\(year)\")\n```\n\n---\n\n## 3. Colors: System Semantic Colors Over Hardcoded Values\n\n### The principle\nUse SwiftUI's semantic color system. It automatically handles light\u002Fdark mode, accessibility, and looks native. Hardcoded colors with manual opacity values create maintenance nightmares and look artificial.\n\n### Bad (hardcoded white with a dozen opacity values)\n```swift\n\u002F\u002F WRONG - impossible to maintain, doesn't adapt to light mode\nColor.black.ignoresSafeArea()           \u002F\u002F forced dark\nColor.white.opacity(0.08)               \u002F\u002F ring background\nColor.white.opacity(0.09)               \u002F\u002F divider\nColor.white.opacity(0.3)                \u002F\u002F year text\nColor.white.opacity(0.32)               \u002F\u002F stat label\nColor.white.opacity(0.42)               \u002F\u002F percent symbol\nColor.white.opacity(0.44)               \u002F\u002F toggle tint\nColor.white.opacity(0.72)               \u002F\u002F button text\nColor.white.opacity(0.88)               \u002F\u002F toggle label\nColor.white.opacity(0.9)                \u002F\u002F stat value\nColor.white.opacity(0.94)               \u002F\u002F ring fill\n```\n\n### Good (semantic system colors)\n```swift\n\u002F\u002F RIGHT - adapts automatically, looks native, easy to maintain\nColor(.systemBackground)                 \u002F\u002F main background\nColor(.secondarySystemBackground)        \u002F\u002F card\u002Fgroup backgrounds\nColor(.separator)                        \u002F\u002F dividers (with optional opacity)\nColor.primary                            \u002F\u002F primary text and UI elements\n.foregroundStyle(.secondary)              \u002F\u002F secondary text\n.foregroundStyle(.tertiary)               \u002F\u002F labels, captions\n```\n\n### When you do need opacity\nLimit to 2-3 values with clear purposes:\n```swift\n.opacity(0.15)  \u002F\u002F subtle background strokes\n.opacity(0.3)   \u002F\u002F separator lines\n\u002F\u002F That's it. If you need more, you're probably hardcoding what semantic colors handle.\n```\n\n---\n\n## 4. Component Sizing: Proportional, Not Oversized\n\n### Progress rings \u002F circular indicators\n```swift\n\u002F\u002F App main view: 200x200 with thin stroke\n.frame(width: 200, height: 200)\nCircle().stroke(..., lineWidth: 3)\n\n\u002F\u002F Widget (systemSmall): 90x90, same stroke\n.frame(width: 90, height: 90)\nCircle().stroke(..., lineWidth: 3)\n\n\u002F\u002F WRONG: oversized ring with thick inconsistent strokes\n.frame(width: 260, height: 260)    \u002F\u002F too large, dominates screen\nCircle().stroke(..., lineWidth: 9)  \u002F\u002F background\nCircle().stroke(..., lineWidth: 8)  \u002F\u002F fill -- WHY different from background?\n```\n\n### Stroke width consistency\n**Always use the same lineWidth for background and foreground strokes of the same element:**\n```swift\n\u002F\u002F RIGHT\nCircle().stroke(background, lineWidth: 3)\nCircle().trim(from: 0, to: fraction).stroke(fill, lineWidth: 3)\n\n\u002F\u002F WRONG - creates visual misalignment\nCircle().stroke(background, lineWidth: 9)\nCircle().trim(from: 0, to: fraction).stroke(fill, lineWidth: 8)\n```\n\n### List rows and toggle rows\n```swift\n\u002F\u002F RIGHT - natural sizing with proper padding\nToggle(isOn: $value) {\n    Text(title)\n        .font(.system(size: 15, weight: .regular, design: .monospaced))\n}\n.padding(.horizontal, 16)\n.padding(.vertical, 12)\n\n\u002F\u002F WRONG - fixed oversized height\nHStack {\n    Text(label)\n        .font(.system(size: 18))   \u002F\u002F too big for a toggle label\n    Spacer()\n    Toggle(\"\", isOn: $isOn)\n        .labelsHidden()             \u002F\u002F why hide the label? Use Toggle properly\n}\n.frame(height: 70)                  \u002F\u002F way too tall\n```\n\n---\n\n## 5. Grouped Content & Cards: Use System Patterns\n\n### Bad (over-engineered custom card)\n```swift\n\u002F\u002F WRONG - custom gradient, overlay border, huge corner radius\nVStack { ... }\n    .padding(.vertical, 4)              \u002F\u002F too tight\n    .background(\n        RoundedRectangle(cornerRadius: 22)   \u002F\u002F too round\n            .fill(LinearGradient(            \u002F\u002F unnecessary gradient\n                colors: [Color(white: 0.10), Color(white: 0.085)],\n                startPoint: .topLeading, endPoint: .bottomTrailing\n            ))\n    )\n    .overlay(\n        RoundedRectangle(cornerRadius: 22)\n            .stroke(Color.white.opacity(0.08), lineWidth: 1)  \u002F\u002F decorative border\n    )\n```\n\n### Good (native grouped style)\n```swift\n\u002F\u002F RIGHT - simple, native, works in light and dark mode\nVStack(spacing: 0) {\n    row1\n    Divider().padding(.leading, 16)\n    row2\n    Divider().padding(.leading, 16)\n    row3\n}\n.background(Color(.secondarySystemBackground))\n.clipShape(.rect(cornerRadius: 10))\n```\n\n### Key rules for grouped content\n- **Corner radius**: 10pt for cards\u002Fgroups (matches iOS system style). Never 22pt+.\n- **Dividers**: Use the system `Divider()` with `.padding(.leading, 16)` for iOS-standard inset. Never build custom divider structs.\n- **Card padding**: 12-16pt vertical, 16pt horizontal. Never 4pt vertical.\n- **Background**: `Color(.secondarySystemBackground)` -- never custom gradients for standard cards.\n\n---\n\n## 6. Navigation: Use NavigationStack\n\n```swift\n\u002F\u002F RIGHT - proper navigation with minimal toolbar\nNavigationStack {\n    ScrollView {\n        content\n    }\n    .toolbar {\n        ToolbarItem(placement: .principal) {\n            Text(\"Title\")\n                .font(.system(size: 13, weight: .medium, design: .monospaced))\n                .tracking(3)\n                .foregroundStyle(.tertiary)\n        }\n    }\n    .navigationBarTitleDisplayMode(.inline)\n}\n\n\u002F\u002F WRONG - no navigation structure, just a ZStack\nZStack {\n    Color.black.ignoresSafeArea()\n    ScrollView {\n        VStack {\n            Text(\"2026\").font(...) \u002F\u002F manually placed \"title\"\n            content\n        }\n    }\n}\n```\n\n---\n\n## 7. WidgetKit: Use Native Components\n\n### Circular lock screen widget\n```swift\n\u002F\u002F RIGHT - use Gauge, it's purpose-built for this\nGauge(value: entry.fraction) {\n    Text(\"\")\n} currentValueLabel: {\n    Text(\"\\(Int(entry.percentage))%\")\n        .font(.system(size: 12, weight: .medium, design: .monospaced))\n}\n.gaugeStyle(.accessoryCircular)\n.containerBackground(.fill.tertiary, for: .widget)\n\n\u002F\u002F WRONG - manual circle drawing for lock screen\nZStack {\n    Circle().stroke(Color.primary.opacity(0.18), lineWidth: 4)\n    Circle().trim(from: 0, to: progress).stroke(...)\n    Text(percentText)\n        .font(.system(size: 14, weight: .bold, design: .rounded)) \u002F\u002F wrong font design!\n}\n```\n\n### Rectangular lock screen widget\n```swift\n\u002F\u002F RIGHT - use Gauge with linearCapacity\nVStack(alignment: .leading, spacing: 4) {\n    HStack {\n        Text(year).font(.system(size: 13, weight: .semibold, design: .monospaced))\n        Spacer()\n        Text(percentage).font(.system(size: 13, weight: .medium, design: .monospaced))\n            .foregroundStyle(.secondary)\n    }\n    Gauge(value: fraction) { Text(\"\") }\n        .gaugeStyle(.linearCapacity)\n        .tint(.primary)\n    HStack {\n        Spacer()\n        Text(\"\\(dayOfYear)\u002F\\(totalDays)\")\n            .font(.system(size: 11, weight: .regular, design: .monospaced))\n            .foregroundStyle(.secondary)\n    }\n}\n.containerBackground(.fill.tertiary, for: .widget)\n\n\u002F\u002F WRONG - custom GeometryReader progress bar\nGeometryReader { proxy in\n    ZStack(alignment: .leading) {\n        RoundedRectangle(cornerRadius: 2).fill(Color.primary.opacity(0.16))\n        RoundedRectangle(cornerRadius: 2).fill(Color.primary)\n            .frame(width: max(2, proxy.size.width * progress))\n    }\n}\n.frame(height: 6)\n```\n\n### Widget background\n```swift\n\u002F\u002F RIGHT\n.containerBackground(.fill.tertiary, for: .widget)\n\n\u002F\u002F WRONG - hardcoded color\n.containerBackground(.black, for: .widget)\n```\n\n### Widget family coverage\nSupport all relevant families -- don't skip common ones:\n```swift\n.supportedFamilies([\n    .accessoryCircular,      \u002F\u002F lock screen circle\n    .accessoryRectangular,   \u002F\u002F lock screen rectangle\n    .accessoryInline,        \u002F\u002F lock screen inline text\n    .systemSmall,            \u002F\u002F home screen small\n    .systemMedium,           \u002F\u002F home screen medium\n    .systemLarge,            \u002F\u002F home screen large\n])\n```\n\n### Cross-family visual consistency\nMedium and large home widgets should share the same structural layout:\n- Header: year on the left, percentage on the right\n- Middle: progress bar\n- Footer: `day\u002Ftotal` right aligned\n\nDo not re-invent hierarchy per family unless there is a hard size constraint.\n\nAlways include explicit internal padding on home widgets to avoid clipping near rounded edges:\n```swift\n.padding(.horizontal, 12)\n.padding(.vertical, 12)\n```\n\n### Widget memory budget (hard limit)\nWidget extensions have a tight memory budget (commonly around 30 MB). Dense visualizations can be killed by `EXC_RESOURCE` if built from too many nested views.\n\n```swift\n\u002F\u002F RIGHT - draw dense dot grids in one pass\nCanvas { context, size in\n    \u002F\u002F draw 365\u002F366 dots here\n}\n\n\u002F\u002F WRONG - hundreds of nested subviews (high memory overhead)\nLazyVGrid(columns: columns) {\n    ForEach(1...366, id: \\.self) { day in\n        ZStack { Circle(); partialFillLayer }\n    }\n}\n```\n\n### Timeline refresh (match data granularity)\n```swift\n\u002F\u002F RIGHT - refresh at midnight for day-level data\nlet tomorrow = calendar.startOfDay(for: calendar.date(byAdding: .day, value: 1, to: now)!)\nTimeline(entries: [entry], policy: .after(tomorrow))\n\n\u002F\u002F RIGHT - periodic refresh for time-of-day dependent percentages\u002Fpartial fills\nlet refresh = Calendar.current.date(byAdding: .minute, value: 15, to: now)!\nTimeline(entries: [entry], policy: .after(refresh))\n\n\u002F\u002F WRONG - minute-level refresh for static daily data\nlet tooFrequent = Calendar.current.date(byAdding: .minute, value: 1, to: now)!\nTimeline(entries: [entry], policy: .after(tooFrequent))\n```\n\n---\n\n## 8. Interactive Elements\n\n### Toggles\n```swift\n\u002F\u002F RIGHT - use Toggle with its built-in label, tint with a single accent color\nToggle(isOn: $value) {\n    Text(title)\n        .font(.system(size: 15, weight: .regular, design: .monospaced))\n}\n.tint(.green)\n\n\u002F\u002F WRONG - hidden label with manual HStack layout\nHStack {\n    Text(label).font(.system(size: 18))\n    Spacer()\n    Toggle(\"\", isOn: $isOn)\n        .labelsHidden()\n        .tint(Color.white.opacity(0.44))  \u002F\u002F low-contrast tint\n}\n```\n\n### Mutually exclusive options\nWhen options are exclusive (e.g. daily\u002Fweekly\u002Fmonthly cadence), use one selected value, not three independent toggles.\n\n```swift\n\u002F\u002F RIGHT - single source of truth\nenum Cadence: String, CaseIterable { case daily, weekly, monthly }\n@State private var cadence: Cadence = .daily\n\nForEach(Cadence.allCases, id: \\.rawValue) { option in\n    Button {\n        cadence = option\n    } label: {\n        HStack {\n            Image(systemName: cadence == option ? \"checkmark.circle.fill\" : \"circle\")\n            Text(option.rawValue.capitalized)\n        }\n    }\n}\n\n\u002F\u002F RIGHT - one preview action when content is shared\nButton(\"Preview\") { sendPreview() }\n\n\u002F\u002F WRONG - independent toggles allow contradictory state\nToggle(\"Daily\", isOn: $daily)\nToggle(\"Weekly\", isOn: $weekly)\nToggle(\"Monthly\", isOn: $monthly)\n```\n\n### Animated transitions for changing numbers\n```swift\n\u002F\u002F Add to any Text that displays a changing numeric value\nText(String(format: \"%.2f\", percentage))\n    .contentTransition(.numericText())\n```\n\n---\n\n## 9. Interactive Editors: Centralize Geometry and State\n\nInteractive editors (collages, crops, canvases, media framing tools, layout pickers) need stricter state and layout discipline than ordinary forms.\n\n### Presentation state\nPresent editor flows from payload state, not from a separate `Bool` plus independently-managed data.\n\n```swift\n\u002F\u002F RIGHT - presentation only happens when payload exists\n@State private var activeCropRequest: CropRequest?\n\n.sheet(item: $activeCropRequest) { request in\n    CropEditor(request: request)\n}\n\n\u002F\u002F WRONG - the sheet can open before the backing data is ready\n@State private var showCropEditor = false\n@State private var selectedImage: UIImage?\n\n.sheet(isPresented: $showCropEditor) {\n    if let selectedImage { CropEditor(image: selectedImage) }\n}\n```\n\n### Shared geometry model\nIf the app previews pan\u002Fzoom\u002Fcrop\u002Flayout live and later exports the result, use one shared geometry model for both preview and render.\n\n```swift\n\u002F\u002F RIGHT - one source of truth for bounds and transforms\nlet normalized = EditorGeometry.normalizedAdjustment(adjustment, imageSize: image.size, slotSize: slotSize)\nlet drawRect = EditorGeometry.drawRect(for: image.size, in: slotRect, adjustment: adjustment)\n\n\u002F\u002F WRONG - preview and export each invent their own math\nlet previewOffset = ...\nlet exportOffset = ...\n```\n\nIf a user can zoom out enough to reveal background, that must be an intentional part of the shared geometry model, not an editor-only exception.\n\n### Gesture coordination\nTap, long-press-drag, and pinch are not independent features. In SwiftUI they compete unless you model their relationship explicitly.\n\n- Use a single interaction state for the active tile\u002Fcard\u002Fcanvas item.\n- Decide which gesture has priority and which ones should run simultaneously.\n- Reset temporary gesture state deliberately when selection changes.\n- Prefer one coherent state machine over scattered booleans tied to individual gestures.\n\n### Fixed editor layout\nIf the screen must not scroll, budget vertical space top-down using a few named regions:\n- header\n- canvas stage\n- settings region\n- bottom toolbar\n\nKeep that sizing math in one place. Don't let each subview invent its own height.\n\n### Custom headers and safe areas\nIf you replace the system navigation bar with a custom header:\n- Be explicit about whether the parent already respects the safe area.\n- Do not add `safeAreaInsets.top` reflexively; double-counting it creates obvious dead space.\n- Keep custom headers compact. They should feel like navigation chrome, not a full content section.\n\n### Settings surfaces\nWhen an editor has several configuration modes (`Layout`, `Border`, `Ratio`, `Background`, etc.), show one active settings surface at a time instead of stacking every control on screen.\n\nThis keeps the canvas visually dominant and makes each control group easier to understand.\n\n---\n\n## 10. Data Model: Share Between App and Widgets\n\n```swift\n\u002F\u002F RIGHT - one model used everywhere\nstruct YearProgress {\n    \u002F\u002F shared calculation logic\n    static func current() -> YearProgress { ... }\n}\n\u002F\u002F Used by both ContentView and widget TimelineProvider\n\n\u002F\u002F If percentage is shown as live progress, include time-of-day in shared math\nlet dayProgress = elapsedInCurrentDay \u002F totalSecondsInDay\nlet elapsedDays = Double(dayOfYear - 1) + dayProgress\nlet fraction = elapsedDays \u002F Double(totalDays)\n\n\u002F\u002F WRONG - separate snapshot structs with duplicated date math\nstruct YearProgressSnapshot { ... }            \u002F\u002F in app\nstruct YearProgressWidgetSnapshot { ... }      \u002F\u002F in widget extension (duplicated!)\n```\n\n---\n\n## 11. Quick Checklist\n\nBefore shipping any SwiftUI view, verify:\n\n- [ ] All spacing values come from the grid (4, 8, 12, 16, 20, 24, 32)\n- [ ] Font sizes limited to 5 or fewer distinct values\n- [ ] One font design used consistently (including widgets)\n- [ ] Colors use semantic system colors, not hardcoded values with opacity\n- [ ] Background and foreground strokes use the same lineWidth\n- [ ] Cards use `Color(.secondarySystemBackground)` with 10pt corner radius\n- [ ] Dividers use system `Divider()` with leading padding\n- [ ] Toggle rows use Toggle's built-in label (not `.labelsHidden()`)\n- [ ] Lock screen widgets use `Gauge` (not manual circle drawing)\n- [ ] Widget background uses `.containerBackground(.fill.tertiary, for: .widget)`\n- [ ] Year\u002Fidentifier text avoids locale grouping when grouping is not desired\n- [ ] Tracking\u002Fkerning limited to 2 values max\n- [ ] NavigationStack is used (not bare ZStack)\n- [ ] Timeline refresh rate matches data granularity (midnight vs periodic)\n- [ ] Large\u002Fdense widget visuals use `Canvas` or similarly lightweight rendering\n- [ ] Medium and large widget families share consistent hierarchy and internal padding\n- [ ] Exclusive choices use a single selected value (not multiple toggles)\n- [ ] Percentages include time-of-day when UI implies live progress\n- [ ] No `minimumScaleFactor` hacks -- fix the layout instead\n- [ ] Interactive editors present from payload state, not `Bool` + separate data\n- [ ] Preview and export share the same geometry model for pan\u002Fzoom\u002Fcrop\u002Flayout\n- [ ] Custom headers do not double-count top safe-area inset\n- [ ] No-scroll editor screens budget height through a centralized layout model\n- [ ] Multi-mode editors show one focused settings surface instead of every control at once\n",{"name":5,"author":25,"license":15,"version":26,"metadata":6,"description":7,"disable-model-invocation":27},"arjitj2","1.1.1",true,"main","1d006ca1585d8de359ec6c476b390fe0d68c8c76","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit","https:\u002F\u002Fhimanshud.com","building stuff","2026-08-30 02:22:37",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":27},[37,40,43],{"tool":38,"command":39},"npx","npx skills add himanshu-dixit\u002Fpersonal_skills --skill designer-swiftui",{"tool":41,"command":42},"bunx","bunx skills add himanshu-dixit\u002Fpersonal_skills --skill designer-swiftui",{"tool":44,"command":45},"pnpm","pnpm dlx skills add himanshu-dixit\u002Fpersonal_skills --skill designer-swiftui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fdesigner-swiftui\u002FSKILL.md",[48,54,58,62,66],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"AGENTS.md","REFERENCE","参考文档",792,"https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fdesigner-swiftui\u002FAGENTS.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"agents\u002Fopenai.yaml",244,"https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fdesigner-swiftui\u002Fagents\u002Fopenai.yaml",{"path":59,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":16},"LICENSE","许可证",1064,{"path":63,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":64,"sourceHtmlUrl":65},"metadata.json",527,"https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fdesigner-swiftui\u002Fmetadata.json",{"path":67,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":68,"sourceHtmlUrl":69},"README.md",1668,"https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fdesigner-swiftui\u002FREADME.md",[71,80,88,96,104,112],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":20},"01M78FRK15DA308F8ZY0J8EXGA","coder-playwright","Use when the task requires automating a real browser from the terminal (navigation, form filling, snapshots, screenshots, data extraction, UI-flow debugging) via `playwright-cli` or the bundled wrapper script.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fcoder-playwright\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fcoder-playwright\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":84,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":20},"01M78FRE53PNTCCYV3T0F4EBQE","coder-playwright-interactive","Persistent browser and Electron interaction through `js_repl` for fast iterative UI debugging.","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fcoder-playwright-interactive\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Fcoder-playwright-interactive\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":92,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":20},"01M78FQTVJ377NPGYBPDCHFQYQ","archify","Create polished, validated architecture, workflow, sequence, data-flow, and lifecycle\u002Fstate diagrams as explorable standalone HTML with inline SVG, dark\u002Flight themes, optional trace motion, and PNG\u002FJPEG\u002FWebP\u002FSVG\u002FWebM export. Accept plain-language requirements or pasted Mermaid flowchart, sequenceDiagram, and stateDiagram input; inspect repository evidence when the diagram must reflect real code. Use when the user asks to visualize system architecture, infrastructure, cloud\u002Fsecurity\u002Fnetwork topology, technical workflows, API call sequences, request lifecycles, data pipelines, ETL\u002FELT, data lineage, state machines, or to convert\u002Fbeautify Mermaid.","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Farchify\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002Farchify\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":100,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":20},"01M78FQQ95JXNEEACXN43ZDKY0","misc_screenshot","Use when the user explicitly asks for a desktop or system screenshot (full screen, specific app or window, or a pixel region), or when tool-specific capture capabilities are unavailable and an OS-level capture is needed.","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002F__misc_screenshot\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002F__misc_screenshot\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":108,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":20},"01M78FQGVCS14YYVQPZHHGMSRF","skill-installer","Install Codex skills into $CODEX_HOME\u002Fskills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002F.system\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002F.system\u002Fskill-installer\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":75,"licenseFileUrl":116,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M78FQE4PHMQFYNV1KBSESMXA","skill-creator","Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002F.system\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002Fhimanshu-dixit\u002Fpersonal_skills\u002Fblob\u002Fmain\u002F.system\u002Fskill-creator\u002FSKILL.md",[],[]]