Reactive Programming with Swift

Leverage the power of the Functional reactive programming paradigm with Swift to develop robust iOS applications
Preview in Mapt

Reactive Programming with Swift

Cecil Costa

1 customer reviews
Leverage the power of the Functional reactive programming paradigm with Swift to develop robust iOS applications
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Reactive Programming with Swift Book Cover
Reactive Programming with Swift
$ 35.99
$ 25.20
Reactive Programming With Java 9 Book Cover
Reactive Programming With Java 9
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781785884269
Paperback238 pages

Book Description

Reactive programming helps you write applications that are more powerful and efficient. You can write more software, help more people, and create applications that scale. Reactive programming is a growing paradigm that we will help you set to work in Swift.

Reactive Programming with Swift guides you through migrating from the traditional way of developing to the new ReactiveCocoa framework, which uses Swift as its main programming language. You will learn how to develop with this framework, debug code, create unit tests, use additional frameworks, and convert a traditional framework into a ReactiveCocoa one.

Starting with a crash course on the fundamental concepts of Reactive programming, we’ll set you up so you’re ready to create reactive applications. We’ll then move on to topics such as Graphical events, Streaming, and Core data, which will help you dive deeper with advanced programming. The concept of switching your programming concepts from imperative to functional reactive programming will also be covered. By the end of this book, you will be able to successfully create highly functional apps using Swift.

Table of Contents

Chapter 1: Introduction to Reactive Programming
What is reactive programming?
Paradigms - declarative versus imperative
What is functional programming?
Swift - interactive, safe, and fast
The ReactiveCocoa project
The future of reactive programming
Summary
Chapter 2: Installing ReactiveCocoa and Using It with Playground
The ReactiveCocoa website
Exploring ReactiveCocoa
Installing ReactiveCocoa via CocoaPods
Using Playground
Summary
Chapter 3: Performing UI Events with ReactiveCocoa
An overview of the project
Setting up the project
Creating a validator class
Validating text fields
Enabling and disabling the button
Using UIDatePicker
Selecting the gender of the user
Adding more information
Getting the right input type
Using bidirectional channels
Displaying your horoscope
Summary
Chapter 4: Network and Change Propagation
Overviewing the project
Setting up the project
Searching for a movie
Filling in the table view
Model-View-ViewModel bindings
Displaying movie posters
Improving your code for a second scene
Filling in the movie form
Implementing the genre signal
Changing a few details in the first scene
Summary
Chapter 5: Enhance Your Application Using RAC Extensions
An overview of the project
Setting up the project and installing extensions
Mocking up the first scene
Retrieving information from GPS
Taking pictures with a camera
Using gesture recognizers
Storing pictures
Storing coordinates
Showing coordinates
Summary
Chapter 6: Using the ReactiveCocoa 4 Style
An overview of the project
Setting up the project
Developing the Currency class
Creating the Currency Manager
Creating the Product class
Implementing a shopping cart
Resuming the ViewController class
Creating the checkout scene
Testing the application
Summary
Chapter 7: Testing Your Application
Checking the expected results
Creating unit tests
Testing the UI
Profiling with Instruments
Summary
Chapter 8: Migrating a Real Application to ReactiveCocoa
Knowing the application
Creating a new framework
Replacing the airplane delegate
Reorganizing the signals
Checking the dark side
Splitting the signal again
Waiting for 10 seconds
Reversing the geolocation
Avoiding repeated calls
Summary

What You Will Learn

  • Switch your programming concepts from imperative to Functional reactive programming
  • Improve your app’s maintenance by developing with a different paradigm
  • Create unit tests and automation tests using the ReactiveCocoa framework
  • Create clear code that is very easy to read
  • Get accustomed to migrating mobile apps to the Reactive way of programming
  • Perform asynchronous calls and join them later

Authors

Table of Contents

Chapter 1: Introduction to Reactive Programming
What is reactive programming?
Paradigms - declarative versus imperative
What is functional programming?
Swift - interactive, safe, and fast
The ReactiveCocoa project
The future of reactive programming
Summary
Chapter 2: Installing ReactiveCocoa and Using It with Playground
The ReactiveCocoa website
Exploring ReactiveCocoa
Installing ReactiveCocoa via CocoaPods
Using Playground
Summary
Chapter 3: Performing UI Events with ReactiveCocoa
An overview of the project
Setting up the project
Creating a validator class
Validating text fields
Enabling and disabling the button
Using UIDatePicker
Selecting the gender of the user
Adding more information
Getting the right input type
Using bidirectional channels
Displaying your horoscope
Summary
Chapter 4: Network and Change Propagation
Overviewing the project
Setting up the project
Searching for a movie
Filling in the table view
Model-View-ViewModel bindings
Displaying movie posters
Improving your code for a second scene
Filling in the movie form
Implementing the genre signal
Changing a few details in the first scene
Summary
Chapter 5: Enhance Your Application Using RAC Extensions
An overview of the project
Setting up the project and installing extensions
Mocking up the first scene
Retrieving information from GPS
Taking pictures with a camera
Using gesture recognizers
Storing pictures
Storing coordinates
Showing coordinates
Summary
Chapter 6: Using the ReactiveCocoa 4 Style
An overview of the project
Setting up the project
Developing the Currency class
Creating the Currency Manager
Creating the Product class
Implementing a shopping cart
Resuming the ViewController class
Creating the checkout scene
Testing the application
Summary
Chapter 7: Testing Your Application
Checking the expected results
Creating unit tests
Testing the UI
Profiling with Instruments
Summary
Chapter 8: Migrating a Real Application to ReactiveCocoa
Knowing the application
Creating a new framework
Replacing the airplane delegate
Reorganizing the signals
Checking the dark side
Splitting the signal again
Waiting for 10 seconds
Reversing the geolocation
Avoiding repeated calls
Summary

Book Details

ISBN 139781785884269
Paperback238 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Swift 2 Book Cover
Mastering Swift 2
$ 39.99
$ 28.00
Swift 2 Design Patterns Book Cover
Swift 2 Design Patterns
$ 31.99
$ 22.40
Swift 2 Blueprints Book Cover
Swift 2 Blueprints
$ 35.99
$ 25.20
Swift High Performance Book Cover
Swift High Performance
$ 27.99
$ 19.60
Swift 3 Functional Programming Book Cover
Swift 3 Functional Programming
$ 35.99
$ 25.20
Protocol-Oriented Programming with Swift Book Cover
Protocol-Oriented Programming with Swift
$ 31.99
$ 22.40