removing Line model change.

This commit is contained in:
Khan, Arshad 2020-04-29 20:43:47 +05:30
parent e309c589d0
commit 66718882d7

View File

@ -9,7 +9,9 @@
import UIKit
@objcMembers open class Line: View {
var lineModel: LineModel?
var lineModel: LineModel? {
get { return model as? LineModel }
}
public var heightConstraint: NSLayoutConstraint?
public var widthConstraint: NSLayoutConstraint?
@ -71,7 +73,6 @@ import UIKit
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
super.set(with: model, delegateObject, additionalData)
if let lineModel = model as? LineModel {
self.lineModel = lineModel
setStyle(lineModel.type)
}
}