From 70b72d2d4d2669d309e60e0cfca417caee84f83b Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Wed, 16 Oct 2024 21:39:36 +0530 Subject: [PATCH] Fix for CXTDT-578885, setting up accessibility for Table --- VDSSample/ViewControllers/TableViewController.swift | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/VDSSample/ViewControllers/TableViewController.swift b/VDSSample/ViewControllers/TableViewController.swift index 4e8b25e..dc08df4 100644 --- a/VDSSample/ViewControllers/TableViewController.swift +++ b/VDSSample/ViewControllers/TableViewController.swift @@ -147,7 +147,11 @@ class TableViewController: BaseViewController { func setupModel() { ///Header row - self.component.tableHeader = [TableRowModel(columns: [TableItemModel(bottomLine: .primary, component: nil), + let tableInfoLabel = Label().with({ + $0.text = "" + $0.accessibilityLabel = "Verizon Plan compare, table, with 3 Rows, 3 Columns, Empty" + }) + self.component.tableHeader = [TableRowModel(columns: [TableItemModel(bottomLine: .primary, component: tableInfoLabel), TableItemModel(bottomLine: .primary, component: Label().with { $0.text = "Verizon smart family"; $0.textStyle = .boldTitleSmall; $0.lineBreakMode = .byWordWrapping}), TableItemModel(bottomLine: .primary, component: Label().with { $0.text = "Call filter"; $0.textStyle = .boldTitleSmall; $0.lineBreakMode = .byWordWrapping })], isHeader: true)]