跳至主要内容

博文

目前显示的是 三月, 2024的博文

Thinking in RxSwift

 原文链接 It has been a long time since my last post. I wanted to prepare an article which will cover the theory which stands behind  Observable  and show the usage on real, not dummy example. It has turned out it was not trivial task as I thought 😉 The article is split into 2 parts. At the beginning, I try to explain what is the  Observable  and how should you treat them. The second part is a tutorial how to implement a search of Spotify tracks using  RxSwift . A theory is a theory, but an example is a thing which makes a subject easier to understand. To cut a long story short, I hope you will enjoy reading 🙂 Observable – a sequence The thing which holds people down before jumping into next level while using Rx is the  thinking in an imperative way . You have to break old habits and start to think in the Rx way. I recommend you to think about  Observable   like about an array . This is because, you can  map ,  filter ,  reduce ...