Removed percent for stackitems.

This commit is contained in:
Lekshmi S 2020-02-14 16:02:05 +05:30
parent 23b2df3c82
commit 0d6322b693

View File

@ -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