How greenerchen/mvvm-c-ios works
This is a small iOS example of MVVM-C navigation: coordinators own navigation and child flows, while view controllers delegate navigation decisions. The README documents the pattern, but only the shared coordinator implementation was excerpted; the example app and feature files are present in the tree but their source was not sampled. The graph therefore shows documented pattern relationships and leaves feature-specific wiring unspecified.
Main entry points: AppCoordinator.swift App coordinator · MainViewController.swift Main screen · DetailViewController.swift Detail screen · Coordinator.swift Coordinator base
Components 8
App lifecycle
- Scene delegate
Examples/App/SceneDelegate.swift - App coordinator
Examples/App/AppCoordinator.swift
Feature screens
- Main screen
Examples/Modules/Main/MainViewController.swift - Detail screen
Examples/Modules/Main/DetailViewController.swift - Popup coordinator
Examples/Modules/Pop-up/PopupCoordinator.swift - Popup screen
Examples/Modules/Pop-up/PopupViewController.swift
Coordinator core
- Coordinator base
Sources/Coordinator.swift
Other components
- User
Connections 4
- User → Main screen: uses
- Main screen → App coordinator: delegates navigation
README.md - App coordinator → Detail screen: presents screen
README.md - App coordinator → Coordinator base: shares coordinator behavior