Two free chapters from the RxSwift book!

Last week we announced our brand new RxSwift book (available now)!

The book starts with the very basics in Chapter 1, “Hello, world!” and leads the reader through a plethora of topics all the way to Chapter 23, “MVVM” and Chapter 24, “Building a complete app with RxSwift”.

Being so detailed about RxSwift knowledge already sets the book apart as a great learning source, but what is really special is that it’s written by four very active RxSwift community memebers and it’s polished by two more editors. All in all the quality (apart from some first edition errata, hehe) is very high.

But don’t take my word for it…

As part of the launch celebration Ray Wenderlich (the publisher of the book) has released two of the book’s chapters for free on his website. So, if you’re still trying to make your mind about the quality of the content found inside the book - here’s your chance!

Chapter 7, Transforming Operators

In the first half of the book where we cover foundational classes like Observable, PublishSubject, Variable, and most of the operators found in RxSwift, we alternate between theory and “… in practice” chapters.

In the theory chapters we introduce concepts and lead the reader through experimenting in an Xcode playground. This hands on approach to learning has proven to be more fun than just reading theory (I’ve worked on a number of books with

Long story short, in Chapter 7 we’re introducing transforming operators and how to use them. The chapter is written by Scott Gardner and takes the readers on a journey through some of the most used operators like: toArray(), map(_), mapWithIndex(_), flatMap(_), flatMapFirst(_), and flatMapLatest(_).

The chapter features some theory, solid explanations with diagrams, and code to try in the provided playground.

to array

You can find an abbreviated free version of that chapter here:

Chapter 8, Transforming Operators in Practice

As with all “.. in practice” chapters in RxSwift: Reactive programming with Swift, the chapter that follows takes the introduced new concepts and/or operators and leads the reader through a step-by-step tutorial, building up a real iOS project to showcase some real-life usages of the newly introduced concepts.

Chapter 8, Transforming Operators in Practice leads the reader through building a GitHub activity app. This kind of app, which talks to an online JSON API, processes the response asynchronously, and displays results on screen is the perfect opportunity to use a bunch of transforming operators.

Even if a little tailored to showcase specifically transforming operators, the project in that chapter can serve as a base to any app that needs to fetch JSON and display the response data on screen, so it’s a great excercise in building RxSwift apps.

github activity

You can find an abbreviated free version of that chapter here:

Where to buy?

Enjoy those completely free chapters from the book, and we hope you’ll enjoy reading the book too!

The book is available at - this is where you can see any updates, discuss in the website forums, etc. Or of course you can order a print copy for your office bookshelf!

Hope that post was helpful, and if you want to get in touch you can find me here

Share this post:

If you'd like to learn how to create professional production apps with RxSwift, the best resource out there is the RxSwift book written by Florent Pillet, Junior Bontognali, Marin Todorov, & Scott Gardner.

It features 20+ chapters covering the basics, the Rx operators, and advanced topics like testing, error handling, and app architecture.

Available from Ray Wenderlich: » Learn more.
Tags// , , , ,
More Reading