@screwdriver
#SwiftUI #Swift #DesignPattern #CleanArchi #iOS
Nothing here yet.
Nothing here yet.
May 2 · 7 min read · You've built a clean feed feature. The RemoteFeedRepository fetches items from the network, the LoadFeedUseCase runs the business logic, and the ViewModel drives the view. Everything is tested and wor
Join discussion
Apr 22 · 8 min read · Most SwiftUI apps start simple. A ViewModel fetches data from an API, maps it to a model, and drives a view. It works. But as the app grows, the ViewModel becomes a god object: it knows about URLs, JS
Join discussion
Apr 21 · 5 min read · One of the most common pitfalls in SwiftUI apps is the overuse of singletons and global state. It feels convenient at first — you just reach for UserDefaults.standard, a shared NetworkService.shared,
Join discussion
Sep 13, 2023 · 9 min read · Problem: How can we avoid breaking an entire app when a model changes? Solution: Decouple each model based on their specific domain. A Deeper Dive When working with data from various sources, a common challenge developers face is the potential for e...
Join discussion