mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 06:27:29 +03:00
26 lines
488 B
Swift
26 lines
488 B
Swift
//
|
|
// UINavigationItem+Rx.swift
|
|
// RxCocoa
|
|
//
|
|
// Created by kumapo on 2016/05/09.
|
|
// Copyright © 2016 Krunoslav Zaher. All rights reserved.
|
|
//
|
|
|
|
#if os(iOS) || os(tvOS)
|
|
|
|
import UIKit
|
|
import RxSwift
|
|
|
|
extension Reactive where Base: UINavigationItem {
|
|
|
|
/// Bindable sink for `title` property.
|
|
public var title: Binder<String?> {
|
|
return Binder(self.base) { navigationItem, text in
|
|
navigationItem.title = text
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|