Created
December 28, 2016 00:53
-
-
Save kitasuke/f8834cdcc91895d21fba24082a0c76e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import RxSwift | |
import RxCocoa | |
extension Reactive where Base: UITableView { | |
func items<S: Sequence, Cell: UITableViewCell, O: ObservableType> | |
(cellType: Cell.Type) | |
-> (_ source: O) | |
-> (_ configureCell: @escaping (Int, S.Iterator.Element, Cell) -> Void) | |
-> Disposable | |
where O.E == S { | |
return items(cellIdentifier: String(describing: cellType), cellType: cellType) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment