Giter VIP home page Giter VIP logo

rxswiftexamples's Introduction

RxSwiftExamples

No Maintenance Intended

Branch master is mostly in Swift 3.0 right now. If you want to see Swift 2.2 version of this repo, please see the swift-2.2 branch.

This 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

  1. 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.
  2. RxSwift by Examples #2 โ€“ Observable and the Bind. Bindings, subjects, variables and stuff. We are observing and we are observed! Demo
  3. RxSwift by Examples #3 - Networking. Networking, Moya, request chaining, optional observers and more!
  4. RxSwift by Examples #4 - Multithreading - observeOn(), subscribeOn(), Driver and more!

Utilites

  1. NSObject-Rx - Handy RxSwift extensions on NSObject, including rx_disposeBag.
  2. ObservableArray-RxSwift - ObservableArray is an array that can emit messages of elements and diffs on it's changing.
  3. Cell+Rx - Handy RxSwift extensions on UITableViewCell and UICollectionViewCell, including rx_reusableDisposeBag.
  4. RxOptional - RxSwift extentions for Swift optionals and "Occupiable" types.
  5. RxExt - Additional operators not found in the core RxSwift distribution.

Extensions to built-in frameworks

  1. RxDataSources - Table and Collection View Data Sources for RxSwift. Example
  2. RxBluetooth - RxBluetooth is a wrapper library to work with RxSwift and CoreBluetooth.
  3. RxSegue - Reactive generic segue, implemented with RxSwift.
  4. RxEasing - RxSwift-based easing library.
  5. RxAction - Abstracts actions to be performed in RxSwift. Example
  6. RxWebKit - RxWebKit is a RxSwift wrapper for WebKit. Example
  7. RxMKMapView - RxMKMapView is a RxSwift wrapper for MKMapView delegate. Example
  8. RxMediaPicker - A reactive wrapper built around UIImagePickerController.
  9. RxViewModel - ReactiveViewModel-esque using RxSwift.
  10. RxGesture - RxSwfit reactive wrapper for view gestures.
  11. RxAppState - RxSwift extensions for UIApplicationDelegate methods to observe changes in your app's state.
  12. RxBluetoothKit - iOS Bluetooth library for RxSwift.
  13. RxMultipeer - RxSwift wrapper for MultipeerConnectivity.

Extensions to external frameworks

  1. RxAlamofire - RxSwift wrapper around the elegant HTTP networking in Swift Alamofire. Example
  2. RxRealm - Rx wrapper for Realm's collection types.
  3. RxNimble - Nimble extensions that making unit testing with RxSwift easier.
  4. RxQueryKit - RxSwift extensions for dealing with QueryKit.
  5. FirebaseRxSwiftExtensions - Extension Methods for Firebase and RxSwift.
  6. ReduxKitRxSwift - RxSwift bindings for ReduxKit.
  7. RxHyperdrive - RxSwift extensions for Hyperdrive, the generic Swift Web API client.
  8. RxBrightFutures - RxSwift wrapper around the Future/Promise library BrightFutures.
  9. RxMoya - RxSwift wrapper for Moya. Example
  10. RxSimpleNoSQL - Reactive extensions for SimpleNoSQL.
  11. RxPermission - RxSwift bindings for Permissions API in iOS.

Examples

  1. RxChat - Chat application also using RxSwift.
  2. RxPagination - Really nice demo for "Protocol-Oriented Programming in Networking", using RxSwift.
  3. RxTestScheduler - Example of how you can use RxSwift's TestScheduler. Unfortunately comments are not in English ๐Ÿ˜ข
  4. RxGitHubAPI - GitHub API example. Unfortunately comments are not in English ๐Ÿ˜ฅ
  5. Parse-RxSwift - A collection of wrapper classes that allow you to use RxSwift Observers in place of Parse's callbacks.
  6. RxSwiftGram - Educational App using RxSwift and MVVM with the Instagram API.

Applications

  1. Eidolon - The Artsy Auction Kiosk App.
  2. Boilerplate - GitHub client using MVVM and RxSwift.
  3. ReactiveWeatherExample - A simple iOS weather app using the MVVM pattern and RxSwift framework.
  4. RxMarbles - RxMarbles iOS app.
  5. CountItApp - Dead simple App with Apple Watch integration that lets you count anything.
  6. WhatFilm - Simple iOS app showing popular films, their cast and crew along with images and links to the trailers.

More

  1. RxSnippets - Several snippets for work with RxSwift
  2. RxSugar - Simple RxSwift extensions for interacting with Apple APIs.
  3. ReactiveCommander - Reactive Command pattern. This one is for RxSwift as well as for ReactiveCocoa.
  4. CollectionVariable - RxSwift Variable for collections that report individual changes in the collection.
  5. 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, [email protected], @thesunshinejr

License

RxSwiftExamples is available under the MIT license. See the LICENSE file for more info.

rxswiftexamples's People

Contributors

allenlinli avatar brocoo avatar rkolchakov avatar sunshinejr avatar sxcore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rxswiftexamples's Issues

Broken link to the RxRealm library

The current link to RxRealm points to https://github.com/nanoxd/RxRealm which is a 404. The correct link is: https://github.com/RxSwiftCommunity/RxRealm

Example doesn't work on Xcode 8, Swift 3.0 now.

I tried to run ColourfulBall project, but I had to update podfile.
But RxSwift contains Swift 2 even though I used updated podfile as follow.

platform :ios, '8.0'
use_frameworks!

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '3.0'
      config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.10'
    end
  end
end


target 'ColourfulBall' do
    pod 'RxSwift',    '~> 3.0.0-beta.1'
    pod 'RxCocoa',    '~> 3.0.0-beta.1'
    pod 'RxDataSources', '~> 1.0.0-beta.2'
    pod 'ChameleonFramework/Swift'
end

RxSwift in the podfile works fine on other projects.
What's the reason that causes this problem?

And here is the message after I install pod.

$ pod install
Analyzing dependencies
Downloading dependencies
Using ChameleonFramework (2.1.0)
Using RxCocoa (3.0.0-beta.2)
Using RxDataSources (1.0.0-beta.3)
Using RxSwift (3.0.0-beta.2)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 4 total
pods installed.

Notification in RxAction Example

Im RxSwift newbie. I think purpose of RxAction is demonstrate how to use Action, but is it cost much or complex to replace notification handling here ?
Are there anyway to implement this logic using RxSwift syntax ?
NotificationCenter.default.addObserver( self, selector: #selector(keyboardWillShow(_:)), name: NSNotification.Name.UIKeyboardWillShow, object: nil)

RxAlamofireExample

Hi,
Thank you for your examples. In the RxAlamofire example, do you think there is a way to auto reload the repositories on every single time the view loads ? , because its a lazy instantiation, assuming there is no search bar what is the best way to make it auto loading / or recall this method fetchRepositories() in the RepositoryNetworkModel. Any straight forward way is fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.