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:
Matt Bruce 2023-09-20 14:51:12 -05:00
parent b2b33db8a9
commit 6da75b26bd

View File

@ -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
//-------------------------------------------------- //--------------------------------------------------