axiom-swiftui-architecture

Guide SwiftUI architecture selection and refactoring for iOS 26+ development.

61|3|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/joelhooks/joelclaw --skill axiom-swiftui-architecture-joelhooks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-swiftui-architecture
Source: https://github.com/joelhooks/joelclaw/tree/main/.agents/skills/axiom-swiftui-architecture
Command: npx skills add https://github.com/joelhooks/joelclaw --skill axiom-swiftui-architecture-joelhooks

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers organize their SwiftUI code by providing clear guidance on choosing and implementing architecture patterns, refactoring views, and making SwiftUI code more testable.

Core Features & Use Cases

  • Architecture Selection: Guides users in choosing between MVVM, TCA, Apple's native patterns, or Coordinator patterns based on project needs.
  • Refactoring Workflows: Offers step-by-step processes to extract logic from SwiftUI views into appropriate layers (Models, ViewModels, Services).
  • Testability Guidance: Demonstrates how to structure code for effective unit testing without relying on SwiftUI views.
  • Use Case: A developer is unsure how to structure a new feature in their SwiftUI app and needs to decide whether to use MVVM or Apple's new @Observable macro, and where to place networking code.

Quick Start

Use the axiom-swiftui-architecture skill to understand the differences between MVVM and TCA for SwiftUI projects.

Frequently Asked Questions about axiom-swiftui-architecture

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

FAQPage Schema
How do I separate business logic from SwiftUI views for better testability?

To separate logic from SwiftUI views, you extract it into layers like Models, ViewModels, or Services. This refactoring process improves testability by allowing you to unit test logic independently without relying on SwiftUI view rendering.

What is the best SwiftUI architecture pattern for iOS 26+ development?

The best SwiftUI architecture depends on project needs, with options including MVVM, TCA, Apple's native patterns, and the Coordinator pattern. Decision trees help evaluate these choices based on testability and codebase organization requirements for iOS 26+ development.

How does MVVM compare to TCA for organizing SwiftUI codebases?

MVVM and TCA represent distinct architectural approaches for SwiftUI codebases. MVVM uses ViewModels for state management, while TCA offers a composable architecture pattern; choosing between them involves evaluating testability needs and project complexity using decision trees.

When should I use Apple's native @Observable macro instead of MVVM in SwiftUI?

You should use Apple's native @Observable macro instead of MVVM when your SwiftUI project aligns with native patterns and requires less boilerplate. Architecture selection guidance helps determine if native patterns fit your specific feature needs better than traditional MVVM.

What are common anti-patterns when implementing SwiftUI architecture?

Common SwiftUI architecture anti-patterns include placing networking code directly in views and failing to separate logic into appropriate layers. Recognizing these anti-patterns helps developers avoid structural pitfalls and maintain effective codebase organization.