fix: table view delegate methods

This commit is contained in:
Nikita Semenov 2022-08-30 21:45:36 +03:00
parent 4880dcad27
commit d16fc21d7e
1 changed files with 3 additions and 5 deletions

View File

@ -62,8 +62,6 @@ open class BaseFiltersTableView<CellType: UITableViewCell & ConfigurableView,
// MARK: - Life cycle
// MARK: - Life cycle
open func addViews() {
// override in subclass
}
@ -97,13 +95,13 @@ open class BaseFiltersTableView<CellType: UITableViewCell & ConfigurableView,
applySnapshot()
}
// MARK: - UICollectionViewDelegate
// MARK: - UITableViewDelegate
open func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
filterDidTapped(atIndexPath: indexPath)
}
open func collectionView(_ collectionView: UICollectionView, didDeselectItemAt indexPath: IndexPath) {
public func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
filterDidTapped(atIndexPath: indexPath)
}