How ddd-community/ddd11-sclass-ios works
Project type and purpose
• This is a modularized iOS application built with Swift, organized according to Domain-Driven Design (DDD) principles.
• It uses Tuist to generate and configure projects, with custom Tuist plugins under the Plugins directory.
• There are three primary layer groupings:
– Projects/App: the main iOS application target (SwiftUI based entry point, AppDelegate, RootView/Store)
– Projects/Core: low-level modules (Common utilities, Domain models, Network infrastructure and API clients)
– Projects/Feature: feature-specific Swift packages (Article, Chat, Home, History, Login, MyPage, Onboarding, Splash)
– Projects/Shared: cross-cutting UI assets (DesignSystem), third-party libs, and utilities
File structure and architectural patterns
• The presence of Tuist/Config.swift, Project.swift, WorkSpace.swift, Plugins indicates an Infrastructure-as-Code approach for project generation.
• Core is split into three modules:
– Common (UI skeleton components, shared extensions)
– Domain (pure business models)
– Network (APIService, BaseAPI, individual Service + APIClient pairs for Article, Chat, Checklist, Home, Login, MyPage, Onboarding, Keychain)
• Feature packages each expose a SwiftUI View → Store (state + actions) → inject domain models + network clients
• The overall pattern: MVVM/Redux-style Stores for state management, DDD layering, Swift Package Manager modularization
README for additional insights
• README confirms DDD and SClass-iOS onboarding kit purpose
– Blue for UI/SwiftUI components
– Green for Business Logic/Domain
– Orange for Networking/API
– Grey for Shared utilities/design system
– Purple for Tuist and build infrastructure
• Number the main data-flow steps to emphasize unidirectional flow.