NSObject-Rx alternatives and similar libraries
Based on the "Reactive Programming" category.
Alternatively, view NSObject-Rx alternatives based on common mentions on social networks and blogs.
-
ReactiveCocoa
Cocoa framework and Obj-C dynamism bindings for ReactiveSwift. -
OpenCombine
Open source implementation of Apple's Combine framework for processing values over time. -
Katana
Swift Apps in a Swoosh! A modern framework for creating iOS apps, inspired by Redux. -
RxCoordinator
๐ Powerful navigation library for iOS based on the coordinator pattern -
RxAlamofire
RxSwift wrapper around the elegant HTTP networking in Swift Alamofire -
Interstellar
Simple and lightweight Functional Reactive Coding in Swift for the rest of us. :large_orange_diamond: -
RxAutomaton
๐ค RxSwift + State Machine, inspired by Redux and Elm. -
Verge
๐ฃ A robust Swift state-management framework designed for complex applications, featuring an integrated ORM for efficient data handling. -
RxMediaPicker
A reactive wrapper built around UIImagePickerController. -
VueFlux
:recycle: Unidirectional State Management Architecture for Swift - Inspired by Vuex and Flux -
Komponents ๐ฆ
๐ฆ React-inspired UIKit Components - โ ๏ธ Deprecated -
ReactiveTask
Flexible, stream-based abstraction for launching processes -
TemplateKit
React-inspired framework for building component-based user interfaces in Swift. -
RxReduce
Lightweight framework that ease the implementation of a state container pattern in a Reactive Programming compliant way. -
LightweightObservable
๐ฌ A lightweight implementation of an observable sequence that you can subscribe to. -
Aftermath
:crystal_ball: Stateless message-driven micro-framework in Swift. -
RxMultipeer
A testable RxSwift wrapper around MultipeerConnectivity -
ReactiveArray
An array class implemented in Swift that can be observed using ReactiveCocoa's Signals -
SimpleApiClient
A configurable api client based on Alamofire4 and RxSwift4 for iOS. -
ACKReactiveExtensions
Set of useful extensions for ReactiveSwift & ReactiveCocoa -
ReactiveLocation
ReactiveCocoa wrapper for CLLocationManager. -
BindKit
Two-way data binding framework for iOS. Only one API to learn. -
STDevRxExt
STDevRxExt contains some extension functions for RxSwift and RxCocoa which makes our live easy. -
RxOptional
RxSwift extentions for Swift optionals and "Occupiable" types -
RxAlamoRecord
RxAlamoRecord combines the power of the AlamoRecord and RxSwift libraries to create a networking layer that makes interacting with API's easier than ever reactively.
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of NSObject-Rx or a related project?
README
NSObject+Rx
If you're using RxSwift, you've probably encountered the following code more than a few times.
class MyObject: Whatever {
let disposeBag = DisposeBag()
...
}
You're actually not the only one; it has been typed many, many times.
[Search screenshot showing many, many results.](assets/screenshot.png)
Instead of adding a new property to every object, use this library to add it for you, to any subclass of NSObject
.
thing
.bind(to: otherThing)
.disposed(by: rx.disposeBag)
Sweet.
It'll work just like a property: when the instance is deinit'd, the DisposeBag
gets disposed. It's also a read/write property, so you can use your own, too.
If you want to add a DisposeBag to an Object that does not inherit from NSObject, you can also implement the protocol HasDisposeBag
, and you're good to go. This protocol provides a default DisposeBag called disposeBag
.
Installing
CocoaPods
Add to your Podfile
:
pod 'NSObject+Rx'
And that'll be ๐
Carthage
Add to Cartfile
:
github "RxSwiftCommunity/NSObject-Rx"
Add frameworks to your project (no need to "copy items if needed")
Run carthage update
or carthage update --platform ios
if you target iOS only
Add run script build phase /usr/local/bin/carthage copy-frameworks
with input files being:
$(SRCROOT)/Carthage/Build/iOS/RxSwift.framework
$(SRCROOT)/Carthage/Build/iOS/NSObject_Rx.framework
And rule โ๏ธ
Contributing
Source files are in the root directory. We use CocoaPods to develop, check out the unit tests in the Demo project.
License
MIT obvs.
*Note that all licence references and agreements mentioned in the NSObject-Rx README section above
are relevant to that project's source code only.