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.
.swift
files into your project.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
}
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.
You can find me on Twitter @edc1591
Distributed under the MIT license. See LICENSE
for more information.