RxUIAlert 1.1.1

RxUIAlert 1.1.1

Maintained by Keisuke Yamagishi, RxSwift Community.



 
Depends on:
RxSwift>= 0
RxCocoa>= 0
 

RxUIAlert 1.1.1

  • By
  • RxSwift Community

RxAlert

Overview

We have made it easy to implement UIAlertController using RxSwift.

build status
travis CI

Carthage

Add following to Cartfile:

github "RxSwiftCommunity/RxAlert"

carthage tutorial

Add as below image.

If you do not do this, the following log will be output

Reason: image not found

App hung😱!

Cocoapods

Cocoapods RxUIAlert

edit Podfile:

vi $(PROJECT_ROOT)/Podfile

Add one line following

pod 'RxUIAlert'

Use it

Via SSH: For those who plan on regularly making direct commits, cloning over SSH may provide a better experience (which requires uploading SSH keys to GitHub):

$ git clone [email protected]:RxSwiftCommunity/RxAlert.git

Via https: For those checking out sources as read-only, HTTPS works best:

$ git clone https://github.com/RxSwiftCommunity/RxAlert.git

Before use it

Execute the following CLI.

If not, please install it.

$ pod install

Sample code

alert(title: "RxAlert",
              message: "RxAlert Message",
              actions: [AlertAction(title: "OK", type: 0, style: .default)],
              vc: self).observeOn(MainScheduler.instance)
            .subscribe(onNext: { index in
                print ("index: \(index)")
                
            }).disposed(by: disposeBag)

LICENCE

Copyright (c) RxSwiftCommunity