Removed percent for stackitems.
This commit is contained in:
parent
23b2df3c82
commit
0d6322b693
@ -54,9 +54,9 @@ import Foundation
|
||||
rightImage.setWithModel(model.image, delegateObject, additionalData)
|
||||
|
||||
// Create a stack model to use for the internal stack and set the alignment of label and image
|
||||
let leftLabel = StackItemModel(percent: 60)
|
||||
let leftLabel = StackItemModel()
|
||||
leftLabel.horizontalAlignment = .leading
|
||||
let rightImage = StackItemModel(percent: 40)
|
||||
let rightImage = StackItemModel()
|
||||
rightImage.horizontalAlignment = .trailing
|
||||
let stackModel = StackModel(molecules: [leftLabel,rightImage])
|
||||
stackModel.axis = .horizontal
|
||||
|
||||
Loading…
Reference in New Issue
Block a user