Building SwiftUI Apps with Claude Code and Cursor That Don't Look AI-Generated

AI coding agents are now genuinely good at SwiftUI. Claude Code, Cursor and Codex can scaffold an app, wire up SwiftData and write a working settings screen in minutes. What they're not good at, left alone, is making the result look like your app instead of a template. This is the workflow we use to get both: speed from the agent, and screens that look designed.

1. Set up the project so the agent can work

Agents do their best work when they can build and check their own output.

2. Give it a design system before the first screen

This is the step that makes the difference. Without one, every prompt is a fresh design guess, and the guesses drift. With one, every screen comes from the same rules.

In Claude Code, package these as a skill, so they load automatically whenever the agent builds UI.

3. Build one screen at a time

Big prompts ("build the whole app") produce big, generic results. Small, concrete ones produce good screens:

Build the paywall: monthly and yearly plans with yearly preselected, the yearly price per month underneath, a restore purchases link and a close button. Follow DESIGN.md. Use StoreKit's SubscriptionStoreView only if it can match our style; otherwise build it from Theme components.

Then iterate on what you see, in the design system's vocabulary: "the plan cards should use surfaceRaised and hairline rules, not shadows" beats "make it look nicer".

4. Review in the simulator, in both appearances

Agents can't see their screens unless you let them. After each screen:

5. Keep the design system the source of truth

When you change your mind about the design, change DESIGN.md and Theme.swift first, then ask the agent to bring the screens in line. Fixing screens one by one brings the drift back.

Common failure modes and fixes

What you see Usually because Fix
Every app looks the same (system blue, default list) No design system Add DESIGN.md and Theme.swift
Random gradients and shadows Model "making it nicer" Add explicit don'ts
Inconsistent spacing No closed spacing scale Spacing tokens only; ban raw numbers
Broken dark mode Hard-coded colors Adaptive color tokens
Huge files, broken edits One-shot prompts One screen per prompt and file

Start with a design system that's already done

Writing the design system is the part that needs a designer. Effect UI's styles are finished, original design systems for iOS, each with a DESIGN.md, a Claude Code skill, a Theme.swift and five reference screens, tested by generating and compiling real apps with AI. Drop one into your project and keep prompting. Ledger is free.

More from the blog

DESIGN.md for iOS: Give Your AI Coding Agent a Design System

What a DESIGN.md is, what goes in one for a SwiftUI app (tokens, type, spacing, motion and rules) and how to make Claude Code, Cursor or Codex follow it on every screen.

Liquid Glass in SwiftUI: A Practical Guide for iOS 26

How to use Liquid Glass in SwiftUI on iOS 26: glassEffect, tint and interactive glass, GlassEffectContainer, morphing with glassEffectID, glass button styles and fallbacks.

Swift 6.2 Approachable Concurrency in SwiftUI Apps

Swift 6.2 makes strict concurrency practical for app code: main-actor isolation by default, nonisolated async functions that stay on the caller's actor, @concurrent and isolated conformances.