This commit is contained in:
Pfeil, Scott Robert 2020-03-17 11:37:39 -04:00
parent b30d582c12
commit 602154df18
2 changed files with 8 additions and 8 deletions

View File

@ -13,10 +13,10 @@ import Foundation
//----------------------------------------------------- //-----------------------------------------------------
// MARK: - Outlets // MARK: - Outlets
//----------------------------------------------------- //-----------------------------------------------------
var stack: Stack<StackModel> public var stack: Stack<StackModel>
let leftLabel = Label.commonLabelB1(true) public let leftLabel = Label.commonLabelB1(true)
let rightLabel = Label.commonLabelB2(true) public let rightLabel = Label.commonLabelB2(true)
let bar = Line() public let bar = Line()
//----------------------------------------------------- //-----------------------------------------------------
// MARK: - Initializers // MARK: - Initializers
@ -44,6 +44,7 @@ import Foundation
bar.widthAnchor.constraint(equalToConstant: 20).isActive = true bar.widthAnchor.constraint(equalToConstant: 20).isActive = true
rightLabel.setContentCompressionResistancePriority(UILayoutPriority(rawValue: 900), for: .horizontal) rightLabel.setContentCompressionResistancePriority(UILayoutPriority(rawValue: 900), for: .horizontal)
addMolecule(stack) addMolecule(stack)
stack.restack()
} }
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?){ open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable : Any]?){
@ -52,11 +53,10 @@ import Foundation
leftLabel.set(with: model.leftLabel, delegateObject, additionalData) leftLabel.set(with: model.leftLabel, delegateObject, additionalData)
rightLabel.set(with: model.rightLabel, delegateObject, additionalData) rightLabel.set(with: model.rightLabel, delegateObject, additionalData)
bar.set(with: model.bar, delegateObject, additionalData) bar.set(with: model.bar, delegateObject, additionalData)
stack.restack()
} }
open override class func estimatedHeight(with molecule: MoleculeModelProtocol?, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat?{ open override class func estimatedHeight(with molecule: MoleculeModelProtocol?, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat?{
return 80 return 70
} }
open override func reset() { open override func reset() {