added model reset
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
e951326f7c
commit
3f8285a74d
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user