Implemented Scott feedback

This commit is contained in:
Khan, Arshad 2020-04-29 20:33:55 +05:30
parent cde1f5c4e6
commit e309c589d0

View File

@ -30,16 +30,16 @@ import UIKit
switch style {
case .standard:
updateLineConstraints(constant: 1)
backgroundColor = .mfSilver()
backgroundColor = lineModel?.backgroundColor?.uiColor ?? .mfSilver()
case .thin:
updateLineConstraints(constant: 1)
backgroundColor = .black
backgroundColor = lineModel?.backgroundColor?.uiColor ?? .black
case .medium:
updateLineConstraints(constant: 2)
backgroundColor = .black
backgroundColor = lineModel?.backgroundColor?.uiColor ?? .black
case .heavy:
updateLineConstraints(constant: 4)
backgroundColor = .black
backgroundColor = lineModel?.backgroundColor?.uiColor ?? .black
case .none:
updateLineConstraints(constant: 0)
}
@ -69,11 +69,11 @@ import UIKit
// MARK: - MoleculeViewProtocol
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)
}
super.set(with: model, delegateObject, additionalData)
}
open override func reset() {