In continuation to my medium blog post : https://medium.com/@navdeepsingh_2336/functional-reactive-programming-frp-2826177b1e27
To understand the whole concept please follow the commits and see how imperative code is converted to FR code using ReactiveCocoa and Reactive Swift libraries.