# nexters/git-it-ios architecture

> Architecture diagram of the GitHub repository nexters/git-it-ios, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nexters/git-it-ios
- Repository: https://github.com/nexters/git-it-ios

## Overview

Git It is an iOS app for learning from GitHub repositories through generated quizzes. The apparent user journey is to enter or share a repository, register it, then study project quiz sets and answer questions; account, bookmarks, and profile settings support that experience. The app is organized into feature reducers, domain use cases, composition adapters, and data/infrastructure services. Source excerpts directly show share-extension setup, question-answer and bookmark callbacks, and storage behavior. Most other feature wiring is unsampled, so those relationships are not asserted as verified calls.

Main entry points: [`sources/Projects/Composition/App/Assemblies/AppComposition.swift`](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Composition/App/Assemblies/AppComposition.swift) (Dependency assembly), [`sources/Projects/App/ShareExtension/ShareViewController.swift`](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/App/ShareExtension/ShareViewController.swift) (Share extension host), [`sources/Projects/Feature/Quiz/QuestionSolving/QuestionSolvingFeature.swift`](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Quiz/QuestionSolving/QuestionSolvingFeature.swift) (Question solving), [`sources/Projects/Feature/ProjectRegistration/Router/ProjectRegistrationRouterFeature.swift`](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ProjectRegistration/Router/ProjectRegistrationRouterFeature.swift) (Repository registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and sharing"]
  node_app_entry["App entry"]
  node_onboarding["Onboarding"]
  node_share_host["Share extension host"]
  node_share_registration["Shared repo registration"]
end

subgraph group_learning["Repository learning"]
  node_registration["Repository registration"]
  node_repo_link["Repository link input"]
  node_project_detail["Project detail"]
  node_quiz_router["Quiz flow"]
  node_question["Question solving"]
  node_home["Home<br/>[HomeFeature.swift]"]
end

subgraph group_domain["Domain and composition"]
  node_generation["Project generation"]
  node_project_usecase["Project use cases<br/>[Project.swift]"]
  node_account["Account use cases<br/>[Account.swift]"]
  node_composition["Dependency assembly"]
end

subgraph group_services["Data and services"]
  node_learning_data["Learning API data"]
  node_external_repo["External repository lookup"]
  node_auth_data["Authentication data"]
  node_storage_factory["Storage factory"]
  node_local_secure["Secure local storage"]
  node_session_coding["Session record coding"]
  node_notifications["Notification handling"]
end

node_user(("App user"))
node_github(("GitHub"))
node_api(("Git It API"))
node_keychain[("Keychain")]

node_user -.->|"opens"| node_app_entry
node_user -->|"shares link"| node_share_host
node_share_host -->|"creates store"| node_share_registration
node_share_host -->|"gets dependencies"| node_composition
node_share_host -->|"configures endpoint"| node_api
node_app_entry -.->|"routes to"| node_onboarding
node_onboarding -.->|"routes to"| node_registration
node_registration -.->|"presents"| node_repo_link
node_registration -.->|"resolves repository"| node_external_repo
node_repo_link -.->|"accepts repository URL"| node_github
node_home -.->|"opens project"| node_project_detail
node_project_detail -.->|"starts quiz flow"| node_quiz_router
node_quiz_router -->|"shows question"| node_question
node_project_detail -->|"embeds question state"| node_question
node_question -.->|"submits answer"| node_api
node_question -.->|"sets bookmark"| node_api
node_composition -.->|"assembles"| node_project_usecase
node_composition -.->|"assembles"| node_generation
node_composition -.->|"assembles"| node_account
node_project_usecase -.->|"uses repository"| node_learning_data
node_generation -.->|"uses repository"| node_learning_data
node_account -.->|"uses repository"| node_auth_data
node_composition -.->|"assembles"| node_external_repo
node_storage_factory -->|"creates"| node_local_secure
node_local_secure -->|"reads and writes"| node_keychain
node_session_coding -->|"reads and writes session"| node_local_secure
node_notifications -.->|"delivers notifications"| node_user
node_learning_data -.->|"requests data"| node_api
node_auth_data -.->|"requests authentication"| node_api
node_external_repo -.->|"fetches repository"| node_github

click node_app_entry "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/AppEntry/AppEntryFeature.swift"
click node_onboarding "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Onboarding/Router/OnboardingRouterFeature.swift"
click node_share_host "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/App/ShareExtension/ShareViewController.swift"
click node_share_registration "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ShareRegistration/ShareRegistration/SharedRepositoryRegistrationFeature.swift"
click node_registration "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ProjectRegistration/Router/ProjectRegistrationRouterFeature.swift"
click node_repo_link "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ProjectRegistration/RepositoryLinkInput/RepositoryLinkInputFeature.swift"
click node_project_detail "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ProjectDetail/Router/ProjectDetailRouterFeature.swift"
click node_quiz_router "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Quiz/Router/QuizRouterFeature.swift"
click node_question "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Quiz/QuestionSolving/QuestionSolvingFeature.swift"
click node_home "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Home/HomeFeature.swift"
click node_generation "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Domain/UseCaseImplementation/ProjectGeneration/UseCases/ProjectGeneration.swift"
click node_project_usecase "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Domain/UseCaseImplementation/Project/UseCases/Project.swift"
click node_account "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Domain/UseCaseImplementation/Account/UseCases/Account.swift"
click node_composition "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Composition/App/Assemblies/AppComposition.swift"
click node_learning_data "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/LearningProject/Remotes/ProjectRemote.swift"
click node_external_repo "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/ExternalRepository/Remotes/ExternalRepositoryRemote.swift"
click node_auth_data "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Authentication/Remotes/AuthenticationRemote.swift"
click node_storage_factory "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Shared/Factories/StorageFactory.swift"
click node_local_secure "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Shared/Stores/LocalSecureValueStorage.swift"
click node_session_coding "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Authentication/Codings/SessionRecordStorageCoding.swift"
click node_notifications "https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Notification/AppDelegates/NotificationAppDelegate.swift"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_entry,node_onboarding,node_share_host,node_share_registration,node_user toneBlue
class node_registration,node_repo_link,node_project_detail,node_quiz_router,node_question,node_home,node_keychain toneAmber
class node_generation,node_project_usecase,node_account,node_composition,node_api toneMint
class node_learning_data,node_external_repo,node_auth_data,node_storage_factory,node_local_secure,node_session_coding,node_notifications toneRose
class node_github toneIndigo
```

## Components

### App and sharing

- [App entry](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/AppEntry/AppEntryFeature.swift): `sources/Projects/Feature/AppEntry/AppEntryFeature.swift`
- [Onboarding](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Onboarding/Router/OnboardingRouterFeature.swift): `sources/Projects/Feature/Onboarding/Router/OnboardingRouterFeature.swift`
- [Share extension host](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/App/ShareExtension/ShareViewController.swift): `sources/Projects/App/ShareExtension/ShareViewController.swift`
- [Shared repo registration](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ShareRegistration/ShareRegistration/SharedRepositoryRegistrationFeature.swift): `sources/Projects/Feature/ShareRegistration/ShareRegistration/SharedRepositoryRegistrationFeature.swift`

### Repository learning

- [Repository registration](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ProjectRegistration/Router/ProjectRegistrationRouterFeature.swift): `sources/Projects/Feature/ProjectRegistration/Router/ProjectRegistrationRouterFeature.swift`
- [Repository link input](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ProjectRegistration/RepositoryLinkInput/RepositoryLinkInputFeature.swift): `sources/Projects/Feature/ProjectRegistration/RepositoryLinkInput/RepositoryLinkInputFeature.swift`
- [Project detail](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/ProjectDetail/Router/ProjectDetailRouterFeature.swift): `sources/Projects/Feature/ProjectDetail/Router/ProjectDetailRouterFeature.swift`
- [Quiz flow](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Quiz/Router/QuizRouterFeature.swift): `sources/Projects/Feature/Quiz/Router/QuizRouterFeature.swift`
- [Question solving](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Quiz/QuestionSolving/QuestionSolvingFeature.swift): `sources/Projects/Feature/Quiz/QuestionSolving/QuestionSolvingFeature.swift`
- [Home](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Feature/Home/HomeFeature.swift): `sources/Projects/Feature/Home/HomeFeature.swift`

### Domain and composition

- [Project generation](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Domain/UseCaseImplementation/ProjectGeneration/UseCases/ProjectGeneration.swift): `sources/Projects/Domain/UseCaseImplementation/ProjectGeneration/UseCases/ProjectGeneration.swift`
- [Project use cases](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Domain/UseCaseImplementation/Project/UseCases/Project.swift): `sources/Projects/Domain/UseCaseImplementation/Project/UseCases/Project.swift`
- [Account use cases](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Domain/UseCaseImplementation/Account/UseCases/Account.swift): `sources/Projects/Domain/UseCaseImplementation/Account/UseCases/Account.swift`
- [Dependency assembly](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Composition/App/Assemblies/AppComposition.swift): `sources/Projects/Composition/App/Assemblies/AppComposition.swift`

### Data and services

- [Learning API data](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/LearningProject/Remotes/ProjectRemote.swift): `sources/Projects/Data/LearningProject/Remotes/ProjectRemote.swift`
- [External repository lookup](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/ExternalRepository/Remotes/ExternalRepositoryRemote.swift): `sources/Projects/Data/ExternalRepository/Remotes/ExternalRepositoryRemote.swift`
- [Authentication data](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Authentication/Remotes/AuthenticationRemote.swift): `sources/Projects/Data/Authentication/Remotes/AuthenticationRemote.swift`
- [Storage factory](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Shared/Factories/StorageFactory.swift): `sources/Projects/Data/Shared/Factories/StorageFactory.swift`
- [Secure local storage](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Shared/Stores/LocalSecureValueStorage.swift): `sources/Projects/Data/Shared/Stores/LocalSecureValueStorage.swift`
- [Session record coding](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Authentication/Codings/SessionRecordStorageCoding.swift): `sources/Projects/Data/Authentication/Codings/SessionRecordStorageCoding.swift`
- [Notification handling](https://github.com/nexters/git-it-ios/blob/develop/sources/Projects/Data/Notification/AppDelegates/NotificationAppDelegate.swift): `sources/Projects/Data/Notification/AppDelegates/NotificationAppDelegate.swift`

### Other components

- **App user**
- **GitHub**
- **Git It API**
- **Keychain**

## Connections

- App user → App entry: opens
- App user → Share extension host: shares link (evidence: `sources/Projects/App/ShareExtension/ShareViewController.swift`)
- Share extension host → Shared repo registration: creates store (evidence: `sources/Projects/App/ShareExtension/ShareViewController.swift`)
- Share extension host → Dependency assembly: gets dependencies (evidence: `sources/Projects/App/ShareExtension/ShareViewController.swift`)
- Share extension host → Git It API: configures endpoint (evidence: `sources/Projects/App/ShareExtension/ShareViewController.swift`)
- App entry → Onboarding: routes to
- Onboarding → Repository registration: routes to
- Repository registration → Repository link input: presents
- Repository registration → External repository lookup: resolves repository
- Repository link input → GitHub: accepts repository URL
- Home → Project detail: opens project
- Project detail → Quiz flow: starts quiz flow
- Quiz flow → Question solving: shows question (evidence: `sources/Projects/Feature/Quiz/Router/Previews/QuizRouterPreviews.swift`)
- Project detail → Question solving: embeds question state (evidence: `sources/Projects/Feature/ProjectDetail/Router/Previews/ProjectDetailRouterPreviews.swift`)
- Question solving → Git It API: submits answer
- Question solving → Git It API: sets bookmark
- Dependency assembly → Project use cases: assembles
- Dependency assembly → Project generation: assembles
- Dependency assembly → Account use cases: assembles
- Project use cases → Learning API data: uses repository
- Project generation → Learning API data: uses repository
- Account use cases → Authentication data: uses repository
- Dependency assembly → External repository lookup: assembles
- Storage factory → Secure local storage: creates (evidence: `sources/Projects/Data/Shared/Factories/StorageFactory.swift`)
- Secure local storage → Keychain: reads and writes (evidence: `sources/Projects/Data/Shared/Stores/LocalSecureValueStorage.swift`)
- Session record coding → Secure local storage: reads and writes session (evidence: `sources/Projects/Data/Authentication/Codings/SessionRecordStorageCoding.swift`)
- Notification handling → App user: delivers notifications
- Learning API data → Git It API: requests data
- Authentication data → Git It API: requests authentication
- External repository lookup → GitHub: fetches repository
