Demo implementing Modern MVVM with Combine and SwiftUI
ModernMVVM-Combine-SwiftUI
Demo implementing Modern MVVM with Combine and SwiftUI
Includes the following:
- Publishers feedback with needed extensions
- ViewModels implementation with
State
andEvent
- Netwokring layer with Provider and TargetType similar to Moya approach
- Reusable SwiftUI views, eg. Spinner, Placeholder and CardView
- Handlers required for any iOS project
References
- Yet Another Swift Blog – Modern MVVM iOS App Architecture with Combine and SwiftUI.
- Hacking with Swift – Designing a single card view
- Swift with Majid – Must-have SwiftUI extensions
- Sarunw – How to use UIKit in SwiftUI