ShapeShapeGrouppointGroupchapter-listShapeShape Copy 12ShapeShape Copy 3ShapeGroupShapedropdowneditoreditorCombined ShapegridShape Copy 4Shape Copy 7ShapelanguagelanguageShapemegaphonepaperbackShapeplatformnoun_419259-2 copyplay-iconBS-Question-Rounded-Circlequotesnoun_610406stacked-books-1stacked-books-2Shape Copy 5 Combined Shape Group Group Group Group Group
RxSwift book cover

RxSwift

$54.99
  • Platform iOS 11
  • Language Swift 4
  • Editor Xcode 9

Learn how to use RxSwift to create complex, reactive applications on iOS.

Developer Guide

Advanced

For advanced ios developers
RxSwift book cover

Leverage the power of RxSwift in your reactive apps!

This book is for iOS developers who already feel comfortable with iOS and Swift, and want to dive deep into development with RxSwift.

Start with an introduction to the reactive programming paradigm; learn about observers and observables, filtering and transforming operators, and how to work with the UI, and finish off by building a fully-featured app in RxSwift.

We also recommend
Core Data book cover
Core Data $54.99

Table of Contents

1.

Hello RxSwift!

Learn about the reactive programming paradigm and what RxSwift can bring to your app.

2.

Observables

Now that you’re ready to use RxSwift and have learned some of the basic concepts, it’s time to play around with observables.

3.

Subjects

In this chapter, you’re going to learn about the different types of subjects in RxSwift, see how to work with each one and why you might choose one over another based on some common use cases.

4.

Observables and Subjects in Practice

In this chapter, you’ll use RxSwift and your new observable super-powers to create an app that lets users to create nice photo collages — the reactive way.

5.

Filtering Operators

This chapter will teach you about RxSwift’s filtering operators that you can use to apply conditional constraints to “.next” events, so that the subscriber only receives the elements it wants to deal with.

6.

Filtering Operators in Practice

In the previous chapter, you began your introduction to the functional aspect of RxSwift. In this chapter, you’re going to try using the filtering operators in a real-life app.

7.

Transforming Operators

In this chapter, you’re going to learn about one of the most important categories of operators in RxSwift: transforming operators.

8.

Transforming Operators in Practice

In this chapter, you’ll take an existing app and add RxSwift transforming operators as you learn more about map and flatMap, and in which situations you should use them in your code.

9.

Combining Operators

This chapter will show you several different ways to assemble sequences, and how to combine the data within each sequence.

10.

Combining Operators in Practice

You'll get an opportunity to try some of the most powerful RxSwift operators. You'll learn to solve problems similar to those you'll face in your own applications.

11.

Time Based Operators

Managing the time dimension of your sequences is easy and straightforward. To learn about time-based operators, you'll practice with an animated playground that visually demonstrates how data flows over time.

12.

Beginning RxCocoa

In this chapter you’ll be introduced to another framework: RxCocoa. RxCocoa works on all platforms and targets the specific UI needs of iOS, watchOS, tvOS and macOS.

13.

Intermediate RxCocoa

Following on from Chapter 12, you’ll learn about some advanced RxCocoa integrations and how to create custom wrappers around existing UIKit components.

14.

Error Handling in Practice

Even the best RxSwift developers can’t avoid encountering errors. You’ll learn how to deal with errors, how to manage error recovery through retries, or just surrender yourself to the universe and letting the errors go.

15.

Intro to Schedulers

This chapter will cover the beauty behind schedulers, where you’ll learn why the Rx abstraction is so powerful and why working with asynchronous programming is far less less painful than using locks or queues.

16.

Testing with RxTest

For all the reasons why you started reading this book and are excited to begin using RxSwift in your app projects, RxTest (and RxBlocking) may very soon have you excited to write tests against your RxSwift code, too.

17.

Creating Custom Reactive Extensions

In this chapter, you will create an extension to NSURLSession to manage the communication with an endpoint, as well as managing the cache and other things which are commonly part of a regular application.

18.

Table and Collection Views

RxSwift not only comes with the tools to perfectly integrate observable sequences with tables and collections views, but also reduces the amount of boilerplate code by quite a lot.

19.

Action

Action exposes observables for errors, the current execution status, an observable of each work observable, guarantees that no new work starts when the previous has not completed, and generally is such a cool class that you don’t want to miss it!

20.

RxGesture

Gesture processing is a good candidate for reactive extensions. Gestures can be viewed as a stream of events, either discrete or continuous. Working with gestures normally involves using the target-action pattern, where you set some object as the gesture target and create a function to receive updates.

21.

RxRealm

A long time ago, in a parallel universe far away, developers who needed a database for their application had the choice between using the ubiquitous but tortuous Core Data, or creating custom wrappers for SQLite. Then Realm appeared, and using databases in applications became a breeze.

22.

RxAlamofire

One of the basic needs of modern mobile applications is the ability to query remote resources. RxAlamofire adds an idiomatic Rx layer to Alamofire, making it straightforward to integrate into your observable workflow.

23.

MVVM with RxSwift

RxSwift is such a big topic that this book hasn’t covered application architecture in any detail yet. And this is mostly because RxSwift doesn't enforce any particular architecture upon your app. However, since RxSwift and MVVM play very nicely together, this chapter is dedicated to the discussion of that specific architecture pattern.

24.

Building a Complete RxSwift App

To conclude this book, you’ll architect and code a small RxSwift application. The goal is not to use Rx “at all costs”, but rather to make design decisions that lead toa clean architecture with stable, predictable and modular behavior. The application is simple by design, to clearly present ideas you can use to architect your own applications.

Meet the authors

Florent Pillet Florent Pillet RW Team Member
Junior Bontognali Junior Bontognali RW Team Member
Marin Todorov Marin Todorov RW Team Member
Scott Gardner Scott Gardner RW Team Member

Customer reviews

'RxSwift'

The RxSwift book was just the thing I needed to get started with Rx. Thanks!

@zen_prog

Awesome! 😍 Even though I've already read this book I still go back to some random chapters everyday.

@adam_smaka

If you want to learn Reactive Programming in Swift, then this book is the only game in town. Clearly, the RW authors know the Rx programming paradigm inside-out and upside-down.

@realliverrobot
RxSwift book cover

Get RxSwift

Learn how to use RxSwift to create complex, reactive applications on iOS.

Top