Skip to content

Commit f303efb

Browse files
committed
Fix type mismatch in UITableView.rx_willDisplayCell
1 parent e26bce7 commit f303efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RxCocoa/iOS/UITableView+Rx.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ extension UITableView {
214214
Reactive wrapper for `delegate` message `tableView:willDisplayCell:forRowAtIndexPath:`.
215215
*/
216216
public var rx_willDisplayCell: ControlEvent<WillDisplayCellEvent> {
217-
let source: Observable<DidEndDisplayingCellEvent> = rx_delegate.observe(#selector(UITableViewDelegate.tableView(_:willDisplayCell:forRowAtIndexPath:)))
217+
let source: Observable<WillDisplayCellEvent> = rx_delegate.observe(#selector(UITableViewDelegate.tableView(_:willDisplayCell:forRowAtIndexPath:)))
218218
.map { a in
219219
return (try castOrThrow(UITableViewCell.self, a[1]), try castOrThrow(NSIndexPath.self, a[2]))
220220
}

0 commit comments

Comments
 (0)