From 476ec50be33004db5dfa3ae382d0e1771bc22876 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Wed, 21 Aug 2024 13:15:46 +0530 Subject: [PATCH] Fix for CXTDT-586497, Using the icon instead of UIImage while feeding data to Table component. --- VDSSample/ViewControllers/TableViewController.swift | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/VDSSample/ViewControllers/TableViewController.swift b/VDSSample/ViewControllers/TableViewController.swift index 72cf505..f645f00 100644 --- a/VDSSample/ViewControllers/TableViewController.swift +++ b/VDSSample/ViewControllers/TableViewController.swift @@ -202,11 +202,12 @@ class TableViewController: BaseViewController { 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)])) }