A simple project to demonstrate MVVM design pattern, UnitTesting via MockURLProtocol, inspired from WWDC 2018: 417 Testing tips and tricks. The Network layer and API requests code is taken from the same talk.
Other useful links that helped to improve code quality:
- https://developer.apple.com/videos/play/wwdc2018/417/
- https://academy.realm.io/posts/making-mock-objects-more-useful-try-swift-2017/?w=1
- https://www.slideshare.net/natashatherobot/practical-protocols-with-associated-types
- https://medium.com/flawless-app-stories/writing-network-layer-in-swift-protocol-oriented-approach-4fa40ef1f908
- https://cocoacasts.com/dequeueing-reusable-views-with-generics-and-protocols