RxSwift/RxCocoa/iOS/UIViewController+Rx.swift
2017-11-04 18:53:02 +01:00

25 lines
504 B
Swift

//
// UIViewController+Rx.swift
// RxCocoa
//
// Created by Kyle Fuller on 27/05/2016.
// Copyright © 2016 Krunoslav Zaher. All rights reserved.
//
#if os(iOS) || os(tvOS)
import UIKit
import RxSwift
extension Reactive where Base: UIViewController {
/// Bindable sink for `title`.
public var title: Binder<String> {
return Binder(self.base) { viewController, title in
viewController.title = title
}
}
}
#endif