Removed constraints and prioritylevel as per review comments.
This commit is contained in:
parent
d0d8fa54ca
commit
5b3e213ed6
@ -36,8 +36,6 @@ import Foundation
|
|||||||
stack.stackItems = [StackItem(andContain: leftLabel),StackItem(andContain: rightImage)]
|
stack.stackItems = [StackItem(andContain: leftLabel),StackItem(andContain: rightImage)]
|
||||||
contentView.addSubview(stack)
|
contentView.addSubview(stack)
|
||||||
containerHelper.constrainView(stack)
|
containerHelper.constrainView(stack)
|
||||||
leftLabel.setContentHuggingPriority(UILayoutPriority(rawValue: 901), for: .horizontal)
|
|
||||||
rightImage.setContentHuggingPriority(UILayoutPriority(rawValue: 902), for: .horizontal)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
@ -57,7 +55,7 @@ import Foundation
|
|||||||
|
|
||||||
// Create a stack model to use for the internal stack and set the alignment of label and image
|
// Create a stack model to use for the internal stack and set the alignment of label and image
|
||||||
let leftLabel = StackItemModel()
|
let leftLabel = StackItemModel()
|
||||||
leftLabel.horizontalAlignment = .fill
|
leftLabel.horizontalAlignment = .leading
|
||||||
let rightImage = StackItemModel()
|
let rightImage = StackItemModel()
|
||||||
rightImage.horizontalAlignment = .trailing
|
rightImage.horizontalAlignment = .trailing
|
||||||
let stackModel = StackModel(molecules: [leftLabel,rightImage])
|
let stackModel = StackModel(molecules: [leftLabel,rightImage])
|
||||||
|
|||||||
@ -26,12 +26,6 @@ public class ListRightVariablePaymentsModel: ContainerModel, ListItemModelProtoc
|
|||||||
if useVerticalMargins == nil {
|
if useVerticalMargins == nil {
|
||||||
useVerticalMargins = true
|
useVerticalMargins = true
|
||||||
}
|
}
|
||||||
if image.height == nil {
|
|
||||||
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