Skip to content
RxSwift wrapper for UIViewController and NSViewController
Swift Ruby
Branch: master
Clone or download
Latest commit a5e6587 Jun 14, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/RxViewController Merge pull request #15 from evfemist/patch-1 Feb 9, 2019
Tests/RxViewControllerTests Update willMove and didMove methods Oct 1, 2018
.gitignore Initial commit :) May 20, 2017
LICENSE Initial commit :) May 20, 2017
Package.resolved Use Xcode 10 and Swift 4.2 Oct 1, 2018
Package.swift Use RxSwift 5.0 Jun 14, 2019 Update Swift version in Jun 14, 2019
RxViewController.podspec Use RxSwift 5.0 Jun 14, 2019
codecov.yml Update codecov.yml Jul 7, 2017


Swift CocoaPods Build Status codecov

RxSwift wrapper for UIViewController and NSViewController.

At a Glance

In the view controller:

  .subscribe(onNext: {
    print("viewDidLoad 🎉")


extension Reactive where Base: UIViewController {
  var viewDidLoad: ControlEvent<Void>

  var viewWillAppear: ControlEvent<Bool>
  var viewDidAppear: ControlEvent<Bool>

  var viewWillDisappear: ControlEvent<Bool>
  var viewDidDisappear: ControlEvent<Bool>

  var viewWillLayoutSubviews: ControlEvent<Void>
  var viewDidLayoutSubviews: ControlEvent<Void>

  var willMoveToParentViewController: ControlEvent<UIViewController?>
  var didMoveToParentViewController: ControlEvent<UIViewController?>

  var didReceiveMemoryWarning: ControlEvent<Void>
public extension Reactive where Base: NSViewController {
  var viewDidLoad: ControlEvent<Void>

  var viewWillAppear: ControlEvent<Void>
  var viewDidAppear: ControlEvent<Void>

  var viewWillDisappear: ControlEvent<Void>
  var viewDidDisappear: ControlEvent<Void>

  var viewWillLayout: ControlEvent<Void>
  var viewDidLayout: ControlEvent<Void>


  • Using CocoaPods:

    pod 'RxViewController'
  • Using Carthage:

    github "devxoul/RxViewController"


Any discussions and pull requests are welcomed 💖

To create a Xcode project:

$ swift package generate-xcodeproj


RxViewController is under MIT license. See the LICENSE file for more info.

You can’t perform that action at this time.