Percent update

This commit is contained in:
Pfeil, Scott Robert 2020-04-02 20:28:47 -04:00
parent a82f9b4aca
commit bcffe0bbd2
2 changed files with 4 additions and 4 deletions

View File

@ -20,8 +20,8 @@ import Foundation
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
stack = Stack<StackModel>.createStack(with: [(view: leftLabel, model: StackItemModel(percent: 30, horizontalAlignment: .leading)),
(view: centerLabel, model: StackItemModel(percent: 40, horizontalAlignment: .leading)),
(view: rightLabel, model: StackItemModel(percent: 30, horizontalAlignment: .center))],
(view: centerLabel, model: StackItemModel(percent: 50, horizontalAlignment: .leading)),
(view: rightLabel, model: StackItemModel(percent: 20, horizontalAlignment: .leading))],
axis: .horizontal)
super.init(style: style, reuseIdentifier: reuseIdentifier)
}

View File

@ -8,13 +8,13 @@
import Foundation
public class ListThreeColumnInternationalDataDividerModel : ListItemModel, MoleculeModelProtocol {
public class ListThreeColumnInternationalDataDividerModel: ListItemModel, MoleculeModelProtocol {
public static var identifier: String = "list3CIntDataDiv"
public var leftLabel: LabelModel
public var centerLabel: LabelModel
public var rightLabel: LabelModel
public init (leftLabel:LabelModel, centerLabel:LabelModel, rightLabel:LabelModel) {
public init (leftLabel: LabelModel, centerLabel: LabelModel, rightLabel: LabelModel) {
self.leftLabel = leftLabel
self.centerLabel = centerLabel
self.rightLabel = rightLabel