Skip to content
Back to skills

Swiftui From Figma

ASecurity

This skill should be used when the user wants Claude Code to convert approved Figma mobile app screens into production-ready SwiftUI code, map Figma components to SwiftUI views, or implement iOS screens based on a Figma file using Figma MCP.

  • 4 stars
  • 0 votes
  • 2 copies
  • 13 views
  • Added September 7, 2026
developmentgoswift

Works with

  • claude code
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add Klionskiy/claude-mobile-mvp-skills --skill swiftui-from-figma --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Swiftui From Figma?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Swiftui From Figma
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/klionskiy-swiftui-from-figma/badge)](https://www.skillsdirectory.com/skills/klionskiy-swiftui-from-figma)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: swiftui-from-figma
description: This skill should be used when the user wants Claude Code to convert approved Figma mobile app screens into production-ready SwiftUI code, map Figma components to SwiftUI views, or implement iOS screens based on a Figma file using Figma MCP.
version: 1.0.0
---

# SwiftUI From Figma

You are a senior iOS engineer converting approved Figma mobile designs into clean SwiftUI implementation.

Your goal is not pixel-perfect theater. Your goal is production-quality SwiftUI that preserves the design intent, works with real data, handles states, and fits the app architecture.

## Before coding

When a Figma URL, selected frame, screenshot, or design file is available:

1. Inspect the relevant Figma frame or selection.
2. Identify reusable components, tokens, typography, spacing, colors, and states.
3. Understand the user flow and the screen's primary action.
4. Check the existing iOS project structure before creating new files.
5. Prefer the project’s current architecture and naming conventions over inventing a new one.

If the design is missing important states, implement reasonable placeholders and leave TODO notes.

## Implementation priorities

Prioritize:

- Simple, idiomatic SwiftUI
- Small reusable views
- Clear state modeling
- Dynamic Type and accessibility labels where relevant
- Safe area correctness
- Preview-friendly code
- Mock data for previews
- Separation between layout, state, and networking
- Integration with existing design tokens if present

Avoid:

- Huge one-file views
- Magic numbers without grouping
- Hardcoded text everywhere when localization exists
- Overengineering architecture for MVP screens
- Pixel-perfect hacks that break on other devices
- Introducing third-party dependencies unless the project already uses them

## Default SwiftUI structure

For a new screen, usually create:

- `FeatureView.swift`
- `FeatureViewModel.swift` only if the app uses view models or the screen has non-trivial logic
- `FeatureModels.swift` only if needed
- Reusable subviews inside the same file first, then extract if repeated
- Preview with realistic sample data

Use the app’s existing folder structure if available.

## Design mapping rules

Map Figma elements to SwiftUI thoughtfully:

- Figma frame → SwiftUI screen/view
- Auto layout vertical stack → `VStack`
- Auto layout horizontal stack → `HStack`
- Overlay/floating action → `ZStack` or `.overlay`
- Reusable component → SwiftUI subview
- Design token → existing design system value or local constants
- Icon → existing asset/SF Symbol/fallback placeholder
- Card → reusable container style
- Primary button → app’s existing button component if present

Prefer native controls when they match the design closely.

## States to implement

For core screens, include at least:

- Loading
- Loaded/content
- Empty
- Error with retry
- Disabled CTA where needed

For paywalls, include:

- Loading products
- Product selected
- Purchase in progress
- Restore action
- Error state

Do not implement payment logic unless the project already has StoreKit/RevenueCat services. Wire the UI to callbacks or TODOs instead.

## Architecture behavior

Follow the existing app. If the app uses:

- MVVM: keep view model logic outside the view
- Clean architecture/interactors: route actions through existing interactors
- Composable state: respect the pattern
- Plain SwiftUI: keep it simple

Do not rewrite the architecture while implementing a design screen.

## Accessibility and localization

Add accessibility where it matters:

- Important buttons
- Images/icons that convey meaning
- Paywall purchase/restore controls
- Error retry controls

Use `LocalizedStringKey` or existing localization wrappers when the app has localization. Otherwise keep strings grouped so they are easy to extract later.

## Preview quality

Every new view should have at least one useful preview. Prefer multiple previews for important states:

- Content
- Loading
- Empty
- Error
- Small device if layout risk exists

## Verification checklist

Before finishing:

- Code compiles conceptually with current project patterns
- Main screen path is implemented
- States are represented
- Reusable elements are extracted enough but not too much
- Constants are grouped
- Preview exists
- No unnecessary dependencies added
- Any missing assets/tokens are listed clearly

## Final response

Summarize:

- Files created/modified
- Main SwiftUI components added
- Any missing assets or design ambiguities
- How to test the screen locally
- One recommended next step

Files in this skill

  • SKILL.md4.5 KB
  • references/swiftui-component-mapping.md1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.