CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ | 
| LangLanguage | SwiftSwift | 
| License | MIT | 
| ReleasedLast Release | Jan 2017 | 
| SwiftSwift Version | 3.0 | 
| SPMSupports SPM | ✗ | 
Maintained by roshanman.
| Depends on: | |
| RxSwift | >= 0 | 
| RxCocoa | >= 0 | 
RxUIAlertController is a wrapper library to work with RxSwift and UIAlertController.
RxUIAlertController is available through CocoaPods.
pod 'RxUIAlertController'Alert(title: "Test", message: "This is a test message.")
    .addAction(title: "Yes")
    .addAction(title: "No", style: .destructive)
    .addTextField{
        $0.placeholder = "placeholder"
    }
    .rx.show()
    .subscribe(onNext: {
        print("button: \($0.buttonTitle)")
        print($0.controller.textFields?.first?.text ?? "")
    })
    .addDisposableTo(disposeBag)
ActionSheet(title: "Test", message: "This is a test message.")
    .addAction(title: "Yes")
    .addAction(title: "No", style: .destructive)
    .addAction(title: "Cancel", style: .cancel)
    .setPresenting(source: sender)
    .rx.show()
    .subscribe(onNext: {
        print("button: \($0.buttonTitle)")
    })
    .addDisposableTo(disposeBag)
To run the example project, clone the repo, and run pod install from the Example directory first.
RxUIAlertController is available under the MIT license. See the LICENSE file for more info.