Ios taste

From pproenca/dot-skills · View interactive version

Ios taste is an AI agent skill from the GitHub repository pproenca/dot-skills. Designs iOS 18+ SwiftUI experiences with real taste — starting from user goals, not pixels. Use this skill whenever the user asks you to build SwiftUI views, screens, or experiences. Trigger when the user says "build a settings screen", "create a detail view", "design this properly", "I want this to

How to use this skill

Skill file

iOS Taste

Taste doesn't start at the pixel level. It starts at "who is this

person and what do they need?" The visual refinement is the LAST step.

The first step is understanding the user's world deeply enough that

the interface design feels inevitable — like it couldn't have been

designed any other way.

Your default mode skips straight to layout. It produces technically

correct SwiftUI that looks generic because it was never grounded in

a real person's needs. This skill changes the order of operations:

think like a designer first, then write code.

Phase 0: The 0.5-Second Test (ORIENT before everything)

Before designing anything, answer ONE question:

**What does the user SEE in the first half-second — before they

read a single word?**

This is not about content. It's about the SHAPE of the screen.

Close your eyes and picture it. What dominates?

If your answer is "a List with rows of text" → STOP. That's a

spreadsheet, not an app. Go back and find the visual shape.

Write the 0.5-second answer as the FIRST line of the experience

brief:

// 0.5s: Four warm gradient cards stacked on black — a cookbook

This single sentence anchors every decision that follows. If the

code you write doesn't produce that shape, something went wrong.

Phase 1: Design Thinking (Before You Touch SwiftUI)

Before writing a single line of code, answer these questions. Write

the answers down as comments or in your thinking. If you skip this

phase, your output will look like every other AI-generated UI —

correct but soulless.

1. Who is the user?

Not "a fitness enthusiast." A real person with a context:

between meetings? Relaxing on the couch? Mid-workout?)

Browsed a list? Got a notification?)

This shapes EVERYTHING. A user mid-workout needs giant tap targets

and glanceable data. A user browsing recipes at home wants rich

detail and discovery. A user configuring settings wants to find the

one toggle they care about and leave.

2. What should they FEEL?

This is the question that separates designed apps from information

displays. Apple Fitness doesn't show you data — it motivates you to

move. Every design choice serves that emotional goal.

Before choosing components, decide the emotional intent:

moments, large achievement numbers

moments (achievement badges, confetti, 3D icons)

professional typography

The emotional intent drives every visual decision downstream: color

palette, scale, spacing, whether data is listed or visualized,

whether the screen feels dense or spacious.

3. What are their goals and pain points?

For each screen, identify:

A fitness settings screen: the primary goal isn't "see all settings."

It's "change the one thing that's been bugging me" — maybe the

weekly goal is too low, or notifications come at the wrong time. The

pain point is wading through 30 options to find the one they need.

3. What features serve those goals?

Map goals to features. Not "what features could this screen have?"

but "what's the minimum set of features that makes the primary goal

effortless?" Every feature that doesn't serve a goal is clutter.

Group features by priority:

4. How do features become screens?

This is information architecture — deciding what goes where:

things, split it into two screens or use progressive disclosure.

"I want to see my notification settings." They think "I want my

phone to stop buzzing during workouts." Group features by the

problem they solve, not by their technical category.

is obvious. Settings → "Health Integrations" → Apple Health → Data

Permissions is three levels deep for something the user sets once.

Consider whether it needs its own screen or can be inline.

5. What components serve each feature?

NOW you think about SwiftUI — but through the lens of user intent:

there are 3+ options, use Picker. If the options need explanation,

use a navigation link to a selection screen.

(1, 2, 3 reps). Sliders for ranges where the exact value matters

less (brightness, volume, a weekly hour target).

1-2 lines. Push to a new screen when the detail is rich enough to

deserve its own context.

edit profile, filter). Push for drilling into hierarchical content.

(contacts, settings, messages). ScrollView for heterogeneous

layouts (a recipe detail with hero image, ingredients, and steps).

The component choice IS the design. A slider for a weekly workout

goal feels exploratory and forgiving. A stepper for the same value

feels precise and clinical. Neither is wrong — the right choice

depends on who the user is and what moment they're in.

Phase 2: Visual Design

After Phase 1, you know who the user is, what they need, how they

should feel, and what components serve those needs. Now make it

beautiful. The emotional intent from Phase 1 drives every choice here.

1. Hierarchy Through Scale

Not just font weight — dramatic scale contrast. The most important

thing on screen should be physically large, not just bold.

a price should dominate the screen. Use .system(size: 64) or

.largeTitle with .fontDesign(.rounded). Apple Fitness shows

"120" as 40% of the screen. Don't shrink important data into a row.

element gets .caption or .footnote in .secondary. The

contrast between the hero and the support IS the hierarchy.

sea of black or white is more powerful than the same number

crammed into a dense list. Space communicates importance.

2. Color Is Math, Not Vibes

NEVER pick colors by hand. Color harmony is a solved mathematical

problem. This skill bundles a palette generator that computes every

color from a single seed hue — analogous harmony, WCAG contrast

validated, light and dark mode variants.

Before writing any view code, run the palette generator:

python scripts/generate_palette.py \
  --seed <hue-degrees> \
  --mode both \
  --items <collection-count> \
  --app "App Name"

Seed hue guide:

Include the generated enum Palette { ... } at the top of your

Swift file and use ONLY those colors. The palette is computed —

every color is mathematically related to the seed, contrast ratios

are pre-validated, and light/dark mode variants are included.

Rules that never break:

not random hues. They sit together because they're ±30° of seed.

those are semantic system colors for status indicators.

ad-hoc Color(hue:) calls scattered through the view code.

3. Show Data, Don't List It

When data is the content (fitness metrics, financial stats,

progress), VISUALIZE it instead of putting it in a label:

A LabeledContent("Steps", value: "8,432") is information. A large

"8,432" in .title with a sparkline below it is an experience.

The emotional intent from Phase 1 tells you which one to use.

4. Card-Based Composition

Don't default to .insetGrouped List for everything. Compose with

rounded rect containers when the content is heterogeneous:

.fill(.secondary.opacity(0.15)) on dark backgrounds

Apple Fitness+ Plans cards)

card-based layouts

Lists are for homogeneous rows (contacts, messages, settings).

Cards are for dashboards, summaries, and content-rich screens.

5. Content Realism

The data IS the design. Every preview tells a coherent story:

varied lengths, temporal realism ("2 hours ago", "Yesterday")

6. Restraint

What you leave out defines taste. No instruction headers. No uniform

icons. No tutorial overlays. No demo naming. For every element, ask:

"what happens if I remove this?" If nothing — remove it.

4. Craft

The invisible details that feel right:

5. Character

Each screen has a distinct personality. Character comes from:

Applying Both Phases

When asked to build a SwiftUI view:

  1. Phase 1 — Think through the user, their goals, feature

groupings, screen structure, and component choices. Write brief

notes (as code comments or in your response) showing your design

reasoning. This is not optional — it's what separates a designed

experience from a decorated layout.

  1. Phase 2 — Write the SwiftUI code with all five fundamentals

applied. Start with realistic data models and preview content.

Build minimal, add only what earns its place, then polish with

craft details.

  1. Self-check — Before finishing, ask: "Would a real user using

this app in the moment I identified in Phase 1 feel like this

screen was designed for them?" If not, something in Phase 1 was

wrong — go back.

What "No Taste" Looks Like

// NO TASTE — jumped straight to layout, no user thinking
struct DemoView: View {
    var body: some View {
        NavigationStack {
            List {
                Section("Instructions") {
                    Text("This demo shows how lists work")
                }
                Section("Items") {
                    ForEach(1...5, id: \.self) { i in
                        HStack {
                            Image(systemName: "star")
                            Text("Item \(i)")
                            Spacer()
                            Text("Detail")
                                .foregroundStyle(.secondary)
                        }
                    }
                }
            }
            .navigationTitle("Demo")
        }
    }
}

No user thinking. No goals. Instruction header. Uniform icons.

Numbered placeholders. Generic naming. No character.

What Taste Looks Like

// GOLDEN — Weather-inspired fitness dashboard
// User: Alex, 28, just finished a morning run, wants to see today's stats
// Emotional intent: MOTIVATED — celebrate the effort, inspire tomorrow
// Hero: calorie ring dominating the top half
struct FitnessCardView: View {
    let calories: Int = 847
    let goal: Int = 1000

    var body: some View {
        ScrollView {
            VStack(spacing: 20) {
                // Hero ring — 40% of visible screen, not a row in a list
                ZStack {
                    Circle()
                        .stroke(.quaternary, lineWidth: 20)
                    Circle()
                        .trim(from: 0, to: Double(calories) / Double(goal))
                        .stroke(calorieGradient, style: StrokeStyle(lineWidth: 20, lineCap: .round))
                        .rotationEffect(.degrees(-90))
                    VStack(spacing: 4) {
                        Text("\(calories)")
                            .font(.system(size: 56, weight: .bold, design: .rounded))
                        Text("of \(goal) cal")
                            .font(.subheadline)
                            .foregroundStyle(.secondary)
                    }
                }
                .frame(width: 220, height: 220)
                .padding(.top, 20)

                // Stat cards — NOT LabeledContent rows
                HStack(spacing: 12) {
                    statCard("Distance", value: "5.2 km", color: .blue)
                    statCard("Time", value: "28:14", color: .green)
                    statCard("Pace", value: "5'26\"", color: .orange)
                }
            }
            .padding()
        }
    }

    private func statCard(_ label: String, value: String, color: Color) -> some View {
        VStack(spacing: 6) {
            Text(value)
                .font(.system(.title3, design: .rounded))
                .fontWeight(.semibold)
            Text(label)
                .font(.caption)
                .foregroundStyle(.secondary)
        }
        .frame(maxWidth: .infinity)
        .padding(.vertical, 16)
        .background(color.opacity(0.1), in: .rect(cornerRadius: 12))
    }

    private var calorieGradient: AngularGradient {
        AngularGradient(colors: [.red, .orange, .yellow], center: .center)
    }
}

Design comment explains user moment and emotional intent. Hero ring

dominates the screen (not a ProgressView in a List row). Stat cards use

color backgrounds, not LabeledContent. You know this is a fitness app

without reading the title — the ring IS the identity.

Component Palette Quick Reference

When you instinctively reach for a tutorial component, STOP:

| NEVER (reflex) | GOLDEN (reach for this instead) |

|----------------|-------------------------------|

| List + ForEach | ScrollView + LazyVStack with cards |

| Form + Section | ScrollView + GroupBox(.regularMaterial) |

| LabeledContent for metrics | Hero typography .system(size:design:.rounded) |

| ProgressView | Circle().trim(from:to:) or Canvas |

| Button("Label") | .borderedProminent + .controlSize(.large) |

| Toggle in Section | Segmented control or custom pill |

| .system(size:) for text | .largeTitle / .title + .fontDesign(.rounded) |

| Default List background | Gradients, .regularMaterial, colored containers |

Modern iOS 18+ APIs to reach for: MeshGradient, .scrollTransition,

.containerRelativeFrame, .visualEffect, Canvas, TimelineView,

.scrollTargetBehavior(.paging), UnevenRoundedRectangle.

Apple reference: Weather (gradient cards), Stocks (hero charts), Health

(colored rings), Fitness (activity cards), Journal (photo cards),

Contacts (gradient posters, glass avatars, per-entity color identity).

The Screen Becomes the Content

Study iOS Contacts: the detail view isn't a form with a contact's

data. The entire screen IS the contact — a full-bleed gradient that

matches the person's avatar color, a glass-bordered monogram, the

name in massive bold type. It's a poster, not a record.

This is the highest level of taste: the UI dissolves into the

content. The screen doesn't frame the data — it becomes the data.

Techniques for this:

its own color identity. Use MeshGradient or LinearGradient

derived from the entity's accent color. The background extends

behind the navigation bar with .ignoresSafeArea().

.stroke(.ultraThinMaterial) borders. Action buttons in

.ultraThinMaterial circles. Cards using .regularMaterial that

let the gradient show through. Depth without shadows.

and leaves the first name regular weight. This tiny detail makes

alphabetical scanning dramatically faster. Find the equivalent

typographic hierarchy for your domain.

dark cards, colored action buttons (red minus, green plus), and

the same avatar hero. Edit mode should never degrade to a generic

form — it maintains the visual language of the view mode.

Reference: Apple Design DNA

When making specific design decisions, read references/apple-design-dna.md

in this skill's directory. It contains patterns extracted by systematically

crawling Apple Fitness and Apple Contacts in the iOS simulator — real

accessibility trees, real measurements, real design analysis per screen.

Key sections to consult:

The Mindset

You are not a developer who can also design. You are a designer who

thinks about people first and expresses the result in SwiftUI. The

code is the medium. The product is the moment when a human picks up

their phone and the interface feels like it was made just for them.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.