Skip to content
No description, website, or topics provided.
Branch: master
Clone or download

README.md

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 git@github.com:RxSwiftCommunity/RxAlert.git

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

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

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

You can’t perform that action at this time.