Helpful primitives for modelling UI actions in RxSwift
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
RxActions.xcodeproj
Sources/RxActions
Tests/RxActionsTests
.gitignore
.travis.yml
CHANGELOG.md
Cartfile
Cartfile.private
Cartfile.resolved
LICENSE
Package.resolved
Package.swift
README.md
RxActions.podspec

README.md

RxActions

Travis (.org) License Swift 4.2 Carthage Compatible Swift Package Manager Compatible CocoaPods

This framework can be used on top of RxCocoa to provide a new Action primitive. An action will perform some work when given an input, producing an Observable which will generate zero or more values before either completing or terminating in an error.

Actions are useful for performing side-effects in UI programming, and can be conditionally enabled and disabled based on the value of a BehaviorRelay. This enabled status can be used to, for example, disable a UIButton.

Installation

This library can be installed using either Carthage, Swift Package Manager, or Cocoapods.

Carthage

Add the following line to your Cartfile:

github "rhysforyou/RxAction"

Swift Package Manager

Add a new package to your Package.swift file's dependencies section, and then add RxActions as a dependency of your target.

let package = Package(
    // ...
    dependencies: [
        .package(url: "https://github.com/rhysforyou/RxActions.git", "4.0.0" ..< "5.0.0"),
        // ...
    ],
    targets: [
        .target(
            name: "MyTarget",
            dependencies: ["RxActions"]),
        // ...
    ]
)

CocoaPods

Add the following line to your Podfile

pod "RxActions"

Usage

Coming soon…