percent update

This commit is contained in:
Pfeil, Scott Robert 2020-08-03 11:06:04 -04:00
parent bb35d28e32
commit f60d71480a

View File

@ -21,7 +21,10 @@ import Foundation
// MARK: - Initializers
//------------------------------------------------------
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
stack = Stack<StackModel>.createStack(with: [(view: leftLabel, model: StackItemModel(percent: 37, horizontalAlignment: .leading)), (view: centerLabel, model: StackItemModel(percent: 40, horizontalAlignment: .leading)), (view: rightLabel, model: StackItemModel(percent: 23, horizontalAlignment: .leading))], axis: .horizontal)
stack = Stack<StackModel>.createStack(with: [(view: leftLabel, model: StackItemModel(percent: 34, horizontalAlignment: .leading)),
(view: centerLabel, model: StackItemModel(percent: 42, horizontalAlignment: .leading)),
(view: rightLabel, model: StackItemModel(percent: 24, horizontalAlignment: .trailing))],
axis: .horizontal)
super.init(style: style, reuseIdentifier: reuseIdentifier)
}
@ -34,9 +37,6 @@ import Foundation
//------------------------------------------------------
open override func setupView() {
super.setupView()
leftLabel.numberOfLines = 1
centerLabel.numberOfLines = 1
rightLabel.numberOfLines = 1
addMolecule(stack)
stack.restack()
}