How essentialdevelopercom/quiz-app works
Project type and purpose
• This is a modular iOS quiz application built in Swift, using Test-Driven Development and Clean Architecture.
• It consists of three modules:
• BasicQuizDomain – the pure business-logic/domain model
• QuizEngine – the “use-case” or application-logic layer
• QuizApp – the iOS app (presentation, UI, routing)
• The goal is to keep each layer independent, well-tested, and easily extendable.
File structure
Top-level folders:
• App/BasicQuizDomain: domain entities (Question, Score), a builder, plus domain tests
• Engine/QuizEngine: orchestrates quiz flow, defines Quiz & delegate, plus engine tests
• App/QuizApp: the Xcode app target, split into:
– Presentation (presenters for questions & results)
– UI/SwiftUI and UI/UIKit (views, view controllers, helpers)
– Routing (navigation controllers, view-controller factories, adapters)
– AppDelegate / QuizApp.swift (entry point, dependency wiring)
• .github/workflows/CI.yml: Continuous Integration pipeline running tests on push.
README for additional insights
• The project exemplifies TDD, modular design, and clean separation of concerns.