Fixes deprecated warnings.

This commit is contained in:
Krunoslav Zaher
2016-08-21 19:26:15 +02:00
parent ef71ba9f20
commit 900035d78b
2 changed files with 6 additions and 6 deletions

View File

@@ -339,7 +339,7 @@ extension UICollectionView {
}
.addDisposableTo(disposeBag)
*/
@available(*, deprecated, renamed: "items(cellIdentifier:cellType:_:_:)")
@available(*, deprecated, renamed: "rx.items(cellIdentifier:cellType:_:_:)")
public func rx_itemsWithCellIdentifier<S: Sequence, Cell: UICollectionViewCell, O : ObservableType>
(_ cellIdentifier: String, cellType: Cell.Type = Cell.self)
-> (_ source: O)
@@ -377,7 +377,7 @@ extension UICollectionView {
}
.addDisposableTo(disposeBag)
*/
@available(*, deprecated, renamed: "items(_:_:)")
@available(*, deprecated, renamed: "rx.items(_:_:)")
public func rx_itemsWithCellFactory<S: Sequence, O: ObservableType>
(_ source: O)
-> (_ cellFactory: @escaping (UICollectionView, Int, S.Iterator.Element) -> UICollectionViewCell)
@@ -426,7 +426,7 @@ extension UICollectionView {
.bindTo(collectionView.rx.items(dataSource: dataSource))
.addDisposableTo(disposeBag)
*/
@available(*, deprecated, renamed: "items(dataSource:_:)")
@available(*, deprecated, renamed: "rx.items(dataSource:_:)")
public func rx_itemsWithDataSource<
DataSource: RxCollectionViewDataSourceType & UICollectionViewDataSource,
O: ObservableType>

View File

@@ -426,7 +426,7 @@ extension UITableView {
.addDisposableTo(disposeBag)
*/
@available(*, deprecated, renamed: "items(_:_:)")
@available(*, deprecated, renamed: "rx.items(_:_:)")
public func rx_itemsWithCellFactory<S: Sequence, O: ObservableType>
(_ source: O)
-> (_ cellFactory: @escaping (UITableView, Int, S.Iterator.Element) -> UITableViewCell)
@@ -460,7 +460,7 @@ extension UITableView {
}
.addDisposableTo(disposeBag)
*/
@available(*, deprecated, renamed: "items(cellIdentifier:cellType:_:_:)")
@available(*, deprecated, renamed: "rx.items(cellIdentifier:cellType:_:_:)")
public func rx_itemsWithCellIdentifier<S: Sequence, Cell: UITableViewCell, O : ObservableType>
(_ cellIdentifier: String, cellType: Cell.Type = Cell.self)
-> (_ source: O)
@@ -517,7 +517,7 @@ extension UITableView {
.bindTo(tableView.rx.items(dataSoruce: dataSource))
.addDisposableTo(disposeBag)
*/
@available(*, deprecated, renamed: "items(dataSource:_:)")
@available(*, deprecated, renamed: "rx.items(dataSource:_:)")
public func rx_itemsWithDataSource<
DataSource: RxTableViewDataSourceType & UITableViewDataSource,
O: ObservableType>