swiftui-ui-patterns

Review SwiftUI and Swift code for architecture, state, layout, and consistency.

34|6|Updated Feb 10, 2026
One-click install
npx skills add https://github.com/Viniciuscarvalho/swift-code-reviewer-skill --skill swiftui-ui-patterns-viniciuscarvalho
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiftui-ui-patterns
Source: https://github.com/Viniciuscarvalho/swift-code-reviewer-skill/tree/main/skills/swiftui-ui-patterns
Command: npx skills add https://github.com/Viniciuscarvalho/swift-code-reviewer-skill --skill swiftui-ui-patterns-viniciuscarvalho

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design, refactor, and review SwiftUI code with clear patterns for state ownership, navigation, sheets, forms, async loading, previews, and app wiring. It reduces guesswork when building production iOS interfaces and keeps UI code aligned with local project conventions.

Core Features & Use Cases

  • SwiftUI architecture guidance: Choose the right state tools, dependency boundaries, and view composition patterns for new or existing screens.
  • Navigation and presentation: Build TabView, NavigationStack, sheet routing, and deep-link flows with reusable structures.
  • UI implementation patterns: Apply best practices for lists, forms, grids, scroll behavior, focus handling, haptics, overlays, and media.
  • Use case: Review a complex SwiftUI screen and identify whether state should stay local, move to a router, or be injected through the environment.

Quick Start

Ask the skill to review your SwiftUI screen or feature and return the best pattern for state, navigation, presentation, async loading, and previews.

Frequently Asked Questions about swiftui-ui-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage state ownership in a complex SwiftUI screen?

SwiftUI state ownership depends on whether data stays local, moves to a router, or gets injected through the environment. This Skill reviews your screen and identifies the correct state tool boundaries for your specific view composition and async loading needs.

What's the best way to structure NavigationStack and sheet routing in SwiftUI?

NavigationStack and sheet routing in SwiftUI benefit from reusable structures for modal presentation and deep-link flows. This Skill provides reference-driven guidance to build TabView navigation and sheet routing patterns that align with your project conventions.

How do I handle async loading and previews in SwiftUI production apps?

Async loading and previews in SwiftUI require clear app-shell wiring and pattern consistency. This Skill reviews your implementation to ensure your loading states and previews follow production-ready patterns across Claude Code, Codex CLI, Gemini CLI, and Kiro.

Can I use this to review existing Swift code for architecture and layout consistency?

Yes, this Skill reviews existing SwiftUI and Swift code for architecture, state, layout, and consistency. It validates spec adherence and applies project-standard validation to UI refactors, navigation flows, and forms.

Does this skill work for UI refactors or only new SwiftUI screen implementation?

This Skill works for both UI refactors and new SwiftUI screen implementation. It applies pattern-driven guidance to state tools, dependency boundaries, view composition, lists, forms, grids, scroll behavior, focus handling, haptics, and overlays.

When should I not use local state in a SwiftUI view?

Local SwiftUI state should move to a router or be injected through the environment when the data needs to persist across screen transitions or shared across multiple views. This Skill identifies whether state should stay local or be elevated based on your navigation flow.