Filtering operators can be divided into separate categories depending on the type of filtering they provide. For instance, operators that ignore certain events, operators that skip events based on certain criteria, or the opposite of skipping, operators that allow you to take elements. Then come operators that allow us to work with distinct elements. In this section, we will cover some operators from these categories; we will cover those operators you will work with most often while working with RxSwift. In order to explore other filtering operators, feel free to check the RxSwift library. Let's start with our very first filtering operator, which is the filter operator.
-
Book Overview & Buying
-
Table Of Contents
Reactive Programming with Swift 4
By :
Reactive Programming with Swift 4
By:
Overview of this book
RxSwift belongs to a large family of Rx implementations in different programming languages that share almost identical syntax and semantics. Reactive approach will help you to write clean, cohesive, resilient, scalable, and maintainable code with highly configurable behavior.
This book will introduce you to the world of reactive programming, primarily focusing on mobile platforms. It will tell how you can benefit from using RxSwift in your projects, existing or new. Further on, the book will demonstrate the unbelievable ease of configuring asynchronous behavior and other aspects of the app that are traditionally considered to be hard to implement and maintain. It will explain what Rx is made of, and how to switch to reactive way of thinking to get the most out of it. Also, test production code using RxTest and the red/ green approach. Finally, the book will dive into real-world recipes and show you how to build a real-world app by applying the reactive paradigm.
By the end of the book, you’ll be able to build a reactive swift application by leveraging all the concepts this book takes you through.
Table of Contents (15 chapters)
Preface
Migrating from Swift 3 to Swift 4
FRP Fundamentals, Terminology, and Basic Building Blocks
Set up RxSwift and Convert a Basic Login App to its RxSwift Counterpart
When to Become Reactive?
Filter, Transform, and Simplify
Reduce by Combining and Filtering and Common Trade Offs
React to UI Events – Start Subscribing
RxTest and Custom Rx Extensions – Testing with Rx
Testing Your RxCode – Testing Asynchronous Code
Schedule Your Tasks, Don't Queue!
Subscribe to Errors and Save Your App
Functional and Reactive App-Architecture
Finish a Real-World Application
Other Books You May Enjoy