fix: review notes

This commit is contained in:
Nikita Semenov 2022-08-10 16:35:55 +03:00
parent 50d3d5a36b
commit ab9fafeb19
14 changed files with 3 additions and 11 deletions

View File

@ -24,7 +24,7 @@ import TIUIKitCore
import UIKit
@available(iOS 13.0, *)
open class BaseFiltersCollectionView<CellType: IdentifiableCollectionCell & ConfigurableView,
open class BaseFiltersCollectionView<CellType: ReuseIdentifiableCollectionCell & ConfigurableView,
PropertyValue: FilterPropertyValueRepresenter & Hashable>: UICollectionView,
InitializableViewProtocol,
UpdatableView,

View File

@ -22,17 +22,9 @@
import UIKit
/// Protocol which ensures that specific type can return reuse identifier for view
public protocol AbstractReuseIdentifierProtocol {
associatedtype IdentifierType
static var reuseIdentifier: IdentifierType { get }
}
/// Protocol which ensures that specific type can return string reuse identifier for view
public protocol ReuseIdentifierProtocol: AbstractReuseIdentifierProtocol {
public protocol ReuseIdentifierProtocol {
static var reuseIdentifier: String { get }
}
public typealias IdentifiableCollectionCell = UICollectionViewCell & ReuseIdentifierProtocol
public typealias ReuseIdentifiableCollectionCell = UICollectionViewCell & ReuseIdentifierProtocol