diff --git a/VDS/Classes/CollectionViewCell.swift b/VDS/Classes/CollectionViewCell.swift index b3e5a13c..536053b1 100644 --- a/VDS/Classes/CollectionViewCell.swift +++ b/VDS/Classes/CollectionViewCell.swift @@ -87,4 +87,11 @@ open class CollectionViewCell: UICo modelHandler.trailingAnchor.constraint(equalTo: trailingAnchor).isActive = true modelHandler.bottomAnchor.constraint(equalTo: bottomAnchor).isActive = true } + + open override func prepareForReuse() { + super.prepareForReuse() + if let handler = modelHandler as? Resettable { + handler.reset() + } + } }