RxSwiftExamples
swift-2.2 branch.
Branch master is mostly in Swift 3.0 right now. If you want to see Swift 2.2 version of this repo, please see theThis repo should be a nice starting point for anyone that wants to start the new adventure called FRP with RxSwift. However, here we also have some references to more advanced examples so that no-one feels unsubscribed 😎
We try to deeply comment our examples, but bear with us if they aren't and if you have any questions just use the contact information on the bottom of the page and ask away!
Tutorials
- RxSwift by Examples #1 - The basics. Start your adventure with FRP and RxSwift. This article starts from the basics and shows the example of searching using Rx. Demo.
- RxSwift by Examples #2 – Observable and the Bind. Bindings, subjects, variables and stuff. We are observing and we are observed! Demo
- RxSwift by Examples #3 - Networking. Networking, Moya, request chaining, optional observers and more!
- RxSwift by Examples #4 - Multithreading -
observeOn()
,subscribeOn()
,Driver
and more!
Utilites
- NSObject-Rx - Handy RxSwift extensions on NSObject, including
rx_disposeBag
. - ObservableArray-RxSwift - ObservableArray is an array that can emit messages of elements and diffs on it's changing.
- Cell+Rx - Handy RxSwift extensions on UITableViewCell and UICollectionViewCell, including rx_reusableDisposeBag.
- RxOptional - RxSwift extentions for Swift optionals and "Occupiable" types.
- RxExt - Additional operators not found in the core RxSwift distribution.
Extensions to built-in frameworks
- RxDataSources - Table and Collection View Data Sources for RxSwift. Example
- RxBluetooth - RxBluetooth is a wrapper library to work with RxSwift and CoreBluetooth.
- RxSegue - Reactive generic segue, implemented with RxSwift.
- RxEasing - RxSwift-based easing library.
- RxAction - Abstracts actions to be performed in RxSwift. Example
- RxWebKit - RxWebKit is a RxSwift wrapper for WebKit. Example
- RxMKMapView - RxMKMapView is a RxSwift wrapper for MKMapView
delegate
. Example - RxMediaPicker - A reactive wrapper built around UIImagePickerController.
- RxViewModel - ReactiveViewModel-esque using RxSwift.
- RxGesture - RxSwfit reactive wrapper for view gestures.
- RxAppState - RxSwift extensions for UIApplicationDelegate methods to observe changes in your app's state.
- RxBluetoothKit - iOS Bluetooth library for RxSwift.
- RxMultipeer - RxSwift wrapper for MultipeerConnectivity.
Extensions to external frameworks
- RxAlamofire - RxSwift wrapper around the elegant HTTP networking in Swift Alamofire. Example
- RxRealm - Rx wrapper for Realm's collection types.
- RxNimble - Nimble extensions that making unit testing with RxSwift easier.
- RxQueryKit - RxSwift extensions for dealing with QueryKit.
- FirebaseRxSwiftExtensions - Extension Methods for Firebase and RxSwift.
- ReduxKitRxSwift - RxSwift bindings for ReduxKit.
- RxHyperdrive - RxSwift extensions for Hyperdrive, the generic Swift Web API client.
- RxBrightFutures - RxSwift wrapper around the Future/Promise library BrightFutures.
- RxMoya - RxSwift wrapper for Moya. Example
- RxSimpleNoSQL - Reactive extensions for SimpleNoSQL.
- RxPermission - RxSwift bindings for Permissions API in iOS.
Examples
- RxChat - Chat application also using RxSwift.
- RxPagination - Really nice demo for "Protocol-Oriented Programming in Networking", using RxSwift.
- RxTestScheduler - Example of how you can use RxSwift's
TestScheduler
. Unfortunately comments are not in English 😢 - RxGitHubAPI - GitHub API example. Unfortunately comments are not in English 😥
- Parse-RxSwift - A collection of wrapper classes that allow you to use RxSwift Observers in place of Parse's callbacks.
- RxSwiftGram - Educational App using RxSwift and MVVM with the Instagram API.
Applications
- Eidolon - The Artsy Auction Kiosk App.
- Boilerplate - GitHub client using MVVM and RxSwift.
- ReactiveWeatherExample - A simple iOS weather app using the MVVM pattern and RxSwift framework.
- RxMarbles - RxMarbles iOS app.
- CountItApp - Dead simple App with Apple Watch integration that lets you count anything.
- WhatFilm - Simple iOS app showing popular films, their cast and crew along with images and links to the trailers.
More
- RxSnippets - Several snippets for work with RxSwift
- RxSugar - Simple RxSwift extensions for interacting with Apple APIs.
- ReactiveCommander - Reactive Command pattern. This one is for RxSwift as well as for ReactiveCocoa.
- CollectionVariable - RxSwift Variable for collections that report individual changes in the collection.
- RxTwift - A type safe Twitter API client constructed on RxSwift.
Contributing
Feel free to make issues/pull requests if you find something wrong in examples or readme, as well as you can add things you would want to see or you know that are written in RxSwift. Let's make our lives better and help each other!
Author
Sunshinejr, thesunshinejr@gmail.com, @thesunshinejr
License
RxSwiftExamples is available under the MIT license. See the LICENSE file for more info.