Fix for CXTDT-586497, Using the icon instead of UIImage while feeding data to Table component.

This commit is contained in:
Sumanth Nadigadda 2024-08-21 13:15:46 +05:30
parent db6b8eb39a
commit 476ec50be3

View File

@ -202,11 +202,12 @@ class TableViewController: BaseViewController<Table> {
trailingToolTip.labelText = "5G Ultra Wideband is available in your area"
trailingToolTip.tooltipModel = .init(title: "Check the formatting of your address",
content:"House/Building number then street name")
let image = UIImage(named: "clean-surface")
let imageView = UIImageView(image: image)
let iconView = Icon()
iconView.name = .cleanSurface
rows.append(TableRowModel(columns: [TableItemModel(bottomLine: .secondary, component:textArea),
TableItemModel(bottomLine: .secondary, component:imageView),
TableItemModel(bottomLine: .secondary, component:iconView),
TableItemModel(bottomLine: .secondary, component:trailingToolTip)]))
}