Implemented Scott feedback
This commit is contained in:
parent
cde1f5c4e6
commit
e309c589d0
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user