Very minor changes
This commit is contained in:
parent
8bf11f2cfb
commit
293cb041d3
@ -1314,8 +1314,8 @@
|
||||
D22B38ED23F4E11100490EF6 /* ThreeColumn */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
BBBBC87A24374A4900B0F079 /* ListThreeColumnBillChangesDivider.swift */,
|
||||
BBBBC87B24374A4900B0F079 /* ListThreeColumnBillChangesDividerModel.swift */,
|
||||
BBBBC87A24374A4900B0F079 /* ListThreeColumnBillChangesDivider.swift */,
|
||||
5248BFEB23F12E350059236A /* ListThreeColumnPlanDataDividerModel.swift */,
|
||||
5248BFEA23F12E350059236A /* ListThreeColumnPlanDataDivider.swift */,
|
||||
8D3BA9BC2433787000D341BA /* ListThreeColumnInternationalDataDividerModel.swift */,
|
||||
|
||||
@ -9,16 +9,16 @@
|
||||
import Foundation
|
||||
@objcMembers open class ListThreeColumnBillChangesDivider: TableViewCell {
|
||||
|
||||
public let leftLabel = Label(frame: .zero)
|
||||
public let centerLabel = Label(frame: .zero)
|
||||
public let rightLabel = Label(frame: .zero)
|
||||
public let leftLabel = Label.createLabelBoldBodySmall(true)
|
||||
public let centerLabel = Label.createLabelBoldBodySmall(true)
|
||||
public let rightLabel = Label.createLabelBoldBodySmall(true)
|
||||
var stack: Stack<StackModel>
|
||||
|
||||
// MARK: - Initializers
|
||||
public override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
|
||||
stack = Stack<StackModel>.createStack(with: [(view: leftLabel, model: StackItemModel(percent: 33, horizontalAlignment: .leading)),
|
||||
(view: centerLabel, model: StackItemModel(percent: 34, horizontalAlignment: .trailing)),
|
||||
(view: rightLabel, model: StackItemModel(percent: 33, horizontalAlignment: .trailing))],
|
||||
stack = Stack<StackModel>.createStack(with: [(view: leftLabel, model: StackItemModel(percent: 44, horizontalAlignment: .leading)),
|
||||
(view: centerLabel, model: StackItemModel(percent: 33, horizontalAlignment: .leading)),
|
||||
(view: rightLabel, model: StackItemModel(percent: 23, horizontalAlignment: .leading))],
|
||||
axis: .horizontal)
|
||||
super.init(style: style, reuseIdentifier: reuseIdentifier)
|
||||
}
|
||||
@ -46,4 +46,11 @@ import Foundation
|
||||
open override class func estimatedHeight(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> CGFloat {
|
||||
return 120
|
||||
}
|
||||
|
||||
open override func reset() {
|
||||
super.reset()
|
||||
leftLabel.styleBoldBodySmall(true)
|
||||
centerLabel.styleBoldBodySmall(true)
|
||||
rightLabel.styleBoldBodySmall(true)
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,9 +24,6 @@ public class ListThreeColumnBillChangesDividerModel: ListItemModel, MoleculeMode
|
||||
override public func setDefaults() {
|
||||
super.setDefaults()
|
||||
style = "tallDivider"
|
||||
leftLabel.fontStyle = .BoldBodySmall
|
||||
rightLabel.fontStyle = .BoldBodySmall
|
||||
centerLabel.fontStyle = .BoldBodySmall
|
||||
}
|
||||
|
||||
private enum CodingKeys: String, CodingKey {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user