r/iosdev • u/Ok_Vehicle_6691 • 18h ago
GitHub When to use MVC, MVVM, VIPER, DI, etc and when to skip them (open-source app + site)
I've been refreshing iOS design patterns building blocks and architecture trade-offs, and ended up building a small open-source app (https://github.com/shalinisah-dev/swift-pumpkin) that implements the same tiny feature 20 different ways using design patterns such as MVC, MVVM + Router, VIPER, Coordinators, DI, Facades, 3-tier layers, Swift 6 concurrency, UIKit/SwiftUI interop, etc.
https://swiftpumpkin.swadharma.ai/ is generated straight from the app's source, with diagrams, Before/After Swift snippets, when not to use each pattern, and browser-local flashcards (no login).
Sharing in case it's useful to anyone refreshing basics or prepping for senior/staff loops. If you spot a trade-off you'd frame differently or a Swift 6 / UIKit edge case I missed, issues and PRs are open.