Latest 2.1.0
Homepage https://github.com/RxSwiftCommunity/RxSwiftUtilities
License MIT
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0
Dependencies RxSwift, RxCocoa
Authors

CocoaPods Compatible
Carthage Compatible
Platform
Build Status
codecov

About

Helpful classes and extensions for RxSwift which don’t belong in RxSwift core.

Usage

Check out the Documentation, the examples below, or the Example App.

ActivityIndicator

let signingIn = ActivityIndicator()

let signedIn = loginButtonTap.withLatestFrom(usernameAndPassword)
    .flatMapLatest { (username, password) in
        return API.signup(username, password: password)
            .trackActivity(signingIn)
    }
}

signingIn.asDriver()
    .drive(UIApplication.shared.rx.isNetworkActivityIndicatorVisible)
    .disposed(by: disposeBag)

Two-way binding

(textField.rx.text <-> variable)
    .disposed(by: disposeBag)

Example App

This repo contains an Example App with interactive examples.

To use the Example App:

cd ExampleApp
pod install

Open the project located in ExampleApp/ with Xcode and build/run it.

Requirements

  • Xcode 9
  • Swift 4

Installation

CocoaPods

Tested with pod --version: 1.1.1

In your Podfile:

use_frameworks!

target "YOUR_TARGET_NAME" do
  pod "RxSwiftUtilities"
end

Replace YOUR_TARGET_NAME and then, in the same directory, run:

pod install

Carthage

Tested with carthage version: 0.18

Add this to Cartfile

github "RxSwiftCommunity/RxSwiftUtilities"

In the same directory, run:

carthage update

Link/Embed frameworks as explained here. Besides linking RxSwiftUtilities, you will also need to link RxSwift and RxCocoa.

Contributing

Help is always appreciated!

git clone [email protected]:RxSwiftCommunity/RxSwiftUtilities.git
cd RxSwiftUtilities

Or use your own forked repo.

carthage bootstrap

This is necessary in order to be able to build the framework on its own and run tests.
However, if you prefer, you can instead develop it while it’s within another project.

Before submitting a PR, please make sure that the tests pass.

Latest podspec

{
    "name": "RxSwiftUtilities",
    "version": "2.1.0",
    "summary": "Helpful classes and extensions for RxSwift",
    "description": "Helpful classes and extensions for RxSwift which don't belong in RxSwift core.",
    "homepage": "https://github.com/RxSwiftCommunity/RxSwiftUtilities",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Jesse Farless": "[email protected]"
    },
    "swift_version": "4.0",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "source": {
        "git": "https://github.com/RxSwiftCommunity/RxSwiftUtilities.git",
        "tag": "2.1.0"
    },
    "source_files": "Source/Common/*.swift",
    "ios": {
        "source_files": "Source/iOS/*.swift"
    },
    "dependencies": {
        "RxSwift": [
            "~> 4.0"
        ],
        "RxCocoa": [
            "~> 4.0"
        ]
    }
}

Pin It on Pinterest

Share This