ReactiveFirebase 0.1.3

ReactiveFirebase 0.1.3

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Dec 2016
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Evan Coleman.



 
Depends on:
ReactiveCocoa= 5.0.0.alpha.6
ReactiveSwift= 1.0.0-rc.3
Firebase/Auth~> 3.11.0
Firebase/Database~> 3.11.0
Firebase/Storage~> 3.11.0
 

ReactiveSwift extensions for Firebase.


ReactiveFirebase adds ReactiveSwift extensions for several Firebase components. Currently FirebaseAuth, FirebaseDatabase, and FirebaseStorage are supported.

Installation

Manually

  1. Download and drop all the .swift files into your project.
  2. There is no step two.

Usage example

Here's a few simple examples.

import ReactiveFirebase

FIRDatabase.database().reference(withPath: "users")
    .child(userID)
    .reactive
    .value
    .startWithValues { user in
        // do something with your user JSON
    }
import ReactiveFirebase

FIRAuth.auth()
    .currentUser
    .startWithValues { user in
        // do something with your FIRUser
    }

Contribute

I would love for you to contribute to ReactiveFirebase, check the LICENSE file for more info. I'd be happy to review any pull requests.

Meta

You can find me on Twitter @edc1591

Distributed under the MIT license. See LICENSE for more information.