iOS development with Reactive Programming and Model-View-ViewModel (MVVM) - part 3

 iOS development with Reactive Programming and Model-View-ViewModel (MVVM) - part 3

In this blog, we will explore a bit on the new apple frameworks: SwiftUI and Combine . SwiftUI is an very innovative and relatively simple way to build user interfaces across all apple devices with pure Swift. For developer, we have one more choices to build our UI apart from using UIKit and storyboards. SwiftUI can work perfectly alone, or mixed with UIKit. Therefore you don't need to rewrite the whole existing app in order to use SwiftUI. On the other hand, it is pure Swift code base. It allows you to set break points and debugs as business logic. Debugging and merge requests are no longer a night mare for the UI features. This declarative Swift syntax helps developers to read and write easily, and totally minimize the maintenance costs.

Read More

iOS development with Reactive Programming and Model-View-ViewModel (MVVM) - part 2

iOS development with Reactive Programming and Model-View-ViewModel (MVVM) - part 2

In the last episode I explained the basic approach of iOS development with Reactive Programming and Model-View-ViewModel (MVVM) architecture. In this part, I will implement a simple app using the github API to search for repositories. It will fire requests while the user is typing and the results will get updated reactively. In this article, we will use RxCocoa + RxSwift to show the experience in Reactive MVVM.

Read More

iOS development with Reactive Programming and Model-View-ViewModel (MVVM) - part 1

iOS development with Reactive Programming and Model-View-ViewModel (MVVM) - part 1

2019 WWDC really surprised a lot of iOS developers in the world. One of the things that have been drawing my attention was "SwiftUI and Combine". As all iOS developers knew, in day 1, we have to deal with problems like difficult languages, interface constraints setting, storyboards merge conflict, massive view controller, untestable viewcontroller for years. They delivered solutions from day 1 until now to solve the above mentioned problems. This year, they announced SwiftUI. SwiftUI basically changes everything again. At first glance, it seems Apple turns every iOS experts from hero to zero. Quite the contrary! It makes it a lot easier to implement the Reactive MVVM pattern. Before showing some experiments, we have to understand why MVVM and Reactive programming are playing a big role in modern iOS.

Read More