How jasonjrr/mvvm.demo.swiftui works
Main Components
a) Core MVVM Pattern:
• View Layer (SwiftUI Views)
• ViewModel Layer
• Model Layer (Services)
• Bindings/Data Flow
b) Navigation & Coordination:
• Coordinator Pattern
• Navigation Stack
c) Infrastructure:
• Dependency Injection Container
• Core Utilities
┌─ App Container ──────────────────────────────────────┐
• ┌─ Dependency Injection Container ───────────────┐ │
• ┌─ Coordinators ─┐ ┌─ Services ────────┐ │ │
• AppRoot │ │ Authentication │ │ │
• ColorWizard │ │ Alert │ │ │
• ┘ │ │
• ▼ ▲ │ │
• ┌─ ViewModels ─┐ │ │ │
• Landing │ │ │ │
• SignIn │─ ─ ─ ─ ─ ─ ─┘ │ │
• ColorWizard │ │ │
• ┘ │ │
• ┼────────────────────────────────────┘ │
• ▼ │
• ┌─ Views ────────┐ ┌─ Core ──────────────┐ │
• LandingView │ │ Combine Extensions │ │
• SignInView │ │ SwiftUI Extensions │ │
• ColorWizardView│ │ Haptic Feedback │ │
• ┘ └──────────────────────┘ │
• ┘
Detailed Components
• Authentication Flow
• Alert System
• Navigation Stack Implementation
Implementation Notes
• Notes for important architectural decisions
• Document SwiftUI-specific patterns