added prepare for reuse
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
8f63017ce9
commit
2e6bb6fbab
@ -87,4 +87,11 @@ open class CollectionViewCell<ModelHandlerType: ModelHandlerable & UIView>: 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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user