Code fixes and removed unwanted code.
This commit is contained in:
parent
6925d1ed46
commit
d0d8fa54ca
@ -15,20 +15,9 @@ import Foundation
|
|||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
|
||||||
let leftLabel = Label.commonLabelB2(true)
|
let leftLabel = Label.commonLabelB2(true)
|
||||||
let rightImage = MFLoadImageView()
|
let rightImage = MFLoadImageView(pinnedEdges: .all)
|
||||||
let stack = Stack<StackModel>(frame: .zero)
|
let stack = Stack<StackModel>(frame: .zero)
|
||||||
|
|
||||||
//------------------------------------------------------
|
|
||||||
// MARK: - Properties
|
|
||||||
//------------------------------------------------------
|
|
||||||
|
|
||||||
let cellHeight: CGFloat = 65.0
|
|
||||||
let leftPadding: CGFloat = 35.0
|
|
||||||
let rightPadding: CGFloat = PaddingNine
|
|
||||||
let spaceBetweenLabelAndImage: CGFloat = 40.0
|
|
||||||
let imageWidth: CGFloat = 56.0
|
|
||||||
let imageHeight: CGFloat = 16.0
|
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
// MARK: - View Lifecycle
|
// MARK: - View Lifecycle
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
@ -71,9 +60,13 @@ import Foundation
|
|||||||
leftLabel.horizontalAlignment = .fill
|
leftLabel.horizontalAlignment = .fill
|
||||||
let rightImage = StackItemModel()
|
let rightImage = StackItemModel()
|
||||||
rightImage.horizontalAlignment = .trailing
|
rightImage.horizontalAlignment = .trailing
|
||||||
let stackModel = StackModel(molecules: [leftLabel,rightLabel])
|
let stackModel = StackModel(molecules: [leftLabel,rightImage])
|
||||||
stackModel.axis = .horizontal
|
stackModel.axis = .horizontal
|
||||||
stack.model = stackModel
|
stack.model = stackModel
|
||||||
stack.restack()
|
stack.restack()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override class func estimatedHeight(forRow molecule: MoleculeModelProtocol?, delegateObject: MVMCoreUIDelegateObject?) -> CGFloat? {
|
||||||
|
return 65
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,6 +29,9 @@ public class ListRightVariablePaymentsModel: ContainerModel, ListItemModelProtoc
|
|||||||
if image.height == nil {
|
if image.height == nil {
|
||||||
image.height = 16.0
|
image.height = 16.0
|
||||||
}
|
}
|
||||||
|
if image.width == nil {
|
||||||
|
image.height = 56.0
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(image: ImageViewModel, leftLabel: LabelModel) {
|
public init(image: ImageViewModel, leftLabel: LabelModel) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user