clean up header
This commit is contained in:
parent
f32232a50c
commit
d7b39a8d0d
@ -24,9 +24,7 @@ import Foundation
|
|||||||
super.setupView()
|
super.setupView()
|
||||||
line.setStyle(.thin)
|
line.setStyle(.thin)
|
||||||
contentView.addSubview(line)
|
contentView.addSubview(line)
|
||||||
NSLayoutConstraint.pinViewBottom(toSuperview: line, useMargins: false, constant: 0).isActive = true
|
NSLayoutConstraint.constraintPinSubview(line, pinTop: false, topConstant: 0, pinBottom: true, bottomConstant: 0, pinLeft: true, leftConstant: 0, pinRight: true, rightConstant: 0)
|
||||||
NSLayoutConstraint.pinViewLeft(toSuperview: line, useMargins: true, constant: 0).isActive = true
|
|
||||||
NSLayoutConstraint.pinViewRight(toSuperview: line, useMargins: true, constant: 0).isActive = true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func updateView(_ size: CGFloat) {
|
open override func updateView(_ size: CGFloat) {
|
||||||
@ -46,9 +44,7 @@ import Foundation
|
|||||||
addMolecule(moleculeView)
|
addMolecule(moleculeView)
|
||||||
}
|
}
|
||||||
containerHelper.set(with: model, for: molecule as? MVMCoreUIViewConstrainingProtocol)
|
containerHelper.set(with: model, for: molecule as? MVMCoreUIViewConstrainingProtocol)
|
||||||
if let lineModel = model.line {
|
line.setOptional(with: model.line, delegateObject, additionalData)
|
||||||
line.set(with: lineModel, delegateObject, additionalData)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open override func reset() {
|
open override func reset() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user