added model reset

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-08-25 10:59:57 -05:00
parent e951326f7c
commit 3f8285a74d
2 changed files with 6 additions and 0 deletions

View File

@ -94,6 +94,9 @@ open class Control<ModelType: Modelable>: UIControl, ModelHandlerable, ViewProto
open func reset() {
backgroundColor = .clear
if let model = model as? Resettable {
model.reset()
}
}
// MARK: - ViewProtocol

View File

@ -94,6 +94,9 @@ open class View<ModelType: Modelable>: UIView, ModelHandlerable, ViewProtocol, R
open func reset() {
backgroundColor = .clear
if let model = model as? Resettable {
model.reset()
}
}
// MARK: - ViewProtocol