https://github.com/itinance/switchtolatestexample
An example for ReactiveCocoa :: switchToLatest
https://github.com/itinance/switchtolatestexample
Last synced: about 1 year ago
JSON representation
An example for ReactiveCocoa :: switchToLatest
- Host: GitHub
- URL: https://github.com/itinance/switchtolatestexample
- Owner: itinance
- License: apache-2.0
- Created: 2014-12-28T13:55:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-28T18:49:21.000Z (over 11 years ago)
- Last Synced: 2025-02-09T06:16:03.506Z (over 1 year ago)
- Language: Objective-C
- Size: 438 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
switchToLatestExample
=====================
An example for ReactiveCocoa :: switchToLatest.
Imagine the following task: you want to observe some properties of an object, which sometimes may not exist. For instance, this could be an object, which is delivered via a REST API at a later time. How to deal with that? RACObserve(subject, property) won't work if subject is nil at this time. Fortunatly, ReactiveCocoa has tools for this issue.
Inspired by Patrick Bacons Artikel about switchToLatest (http://spin.atomicobject.com/2014/05/21/reactivecocoa-understanding-switchtolatest) I played around with it and created this example project.
Installation:
=============
Just clone the project, run "pod install" and open the .xcworkspace-File instead of .xcodeproj