Mastering MVVM With Swift
Refactoring the View Model Using RxSwift
Sponsor
Sponsors enable me to publish more free content. Take a moment to visit this week's sponsor to support the work I do.
Dream it. Build it. Grow it.
Get reliable and affordable cloud hosting with DigitalOcean! Our platform provides secure cloud infrastructure for developers. With simple pricing and flexible configurations, you can get up and running quickly. Plus, our 24/7 support ensures you're never alone.
With RxSwift and RxCocoa integrated into the project, it is time to refactor the AddLocationViewModel
class. Make sure you open the workspace CocoaPods created for us in the previous episode. Open AddLocationViewModel.swift and add an import statement for RxSwift and RxCocoa at the top.
Instant and Unlimited Access
to 500+ Cocoacasts Tutorials
$19 / month
Pay Once a Month
30 Day Money Back Guarantee
$8.25 / month (billed annually)
Pay Once a Year and Save $129
30 Day Money Back
Guarantee