Fix outdated comments on UISearchBar's rx_searchText property.

This commit is contained in:
Yoshinori Sano 2015-10-09 09:15:59 +09:00
parent a877416c56
commit 978b4eb629
2 changed files with 3 additions and 3 deletions

View File

@ -321,7 +321,7 @@ extension UISearchBar {
return proxyForObject(self) as RxSearchBarDelegateProxy
}
public var rx_searchText: Observable<String> {
public var rx_text: Observable<String> {
return defer { [weak self] in
let text = self?.text ?? ""
@ -341,7 +341,7 @@ This is how that API can be now used
```swift
searchBar.rx_searchText
searchBar.rx_text
.subscribeNext { searchText in
print("Current search text '\(searchText)'")
}

View File

@ -160,7 +160,7 @@ Returns existing proxy for object or installs new instance of delegate proxy.
return proxyForObject(self) as RxSearchBarDelegateProxy
}
public var rx_searchText: ControlProperty<String> {
public var rx_text: ControlProperty<String> {
let source: Observable<String> = self.rx_delegate.observe("searchBar:textDidChange:")
...
}