don't call super to draw if model is set to none
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
b2b33db8a9
commit
6da75b26bd
@ -68,6 +68,11 @@ import VDS
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
open override func draw(_ rect: CGRect) {
|
||||||
|
guard viewModel.type != .none else { return }
|
||||||
|
super.draw(rect)
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - VDSMoleculeViewProtocol
|
// MARK: - VDSMoleculeViewProtocol
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user