Run RxFeedback.xcodeproj > Example to find out more.
Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapods
To integrate RxFeedback into your Xcode project using CocoaPods, specify it in your Podfile:
pod 'RxFeedback', '~> 3.0'
Then, run the following command:
$ pod install
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
To integrate RxFeedback into your Xcode project using Carthage, specify it in your Cartfile:
github "NoTests/RxFeedback" ~> 3.0
Run carthage update to build the framework and drag the built RxFeedback.framework into your Xcode project. As RxFeedback depends on RxSwift and RxCocoa you need to drag the RxSwift.framework and RxCocoa.framework into your Xcode project as well.
Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
Once you have your Swift package set up, adding RxFeedback as a dependency is as easy as adding it to the dependencies value of your Package.swift.
RxFeedback
The simplest architecture for RxSwift
Why
Straightforward
Declarative
Debugging is easier
Can be applied on any level
system
operator)system
operator inside feedback loop)Works awesome with dependency injection
Testing
Can model circular dependencies
Completely separates business logic from effects (Rx).
Examples
Simple UI Feedback loop
Complete example
Play Catch
Simple automatic feedback loop.
Complete example
Paging
Complete example
Run
RxFeedback.xcodeproj
>Example
to find out more.Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
To integrate RxFeedback into your Xcode project using CocoaPods, specify it in your
Podfile
:Then, run the following command:
Carthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
To integrate RxFeedback into your Xcode project using Carthage, specify it in your
Cartfile
:Run
carthage update
to build the framework and drag the builtRxFeedback.framework
into your Xcode project. AsRxFeedback
depends onRxSwift
andRxCocoa
you need to drag theRxSwift.framework
andRxCocoa.framework
into your Xcode project as well.Swift Package Manager
The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the
swift
compiler.Once you have your Swift package set up, adding RxFeedback as a dependency is as easy as adding it to the
dependencies
value of yourPackage.swift
.Difference from other architectures
Cmd
, which effects to perform are encoded into state and queried by feedback loops