From 6369bdd09bc27a04bd56e9482e25bc40c693945c Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 8 May 2023 16:14:44 -0500 Subject: [PATCH] updated table code Signed-off-by: Matt Bruce --- .../ViewControllers/TableViewTestController.swift | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/VDSSample/ViewControllers/TableViewTestController.swift b/VDSSample/ViewControllers/TableViewTestController.swift index 8d024a8..6d48cd3 100644 --- a/VDSSample/ViewControllers/TableViewTestController.swift +++ b/VDSSample/ViewControllers/TableViewTestController.swift @@ -83,7 +83,7 @@ public class TableViewTestController: UITableViewController, Initable { } public override func numberOfSections(in tableView: UITableView) -> Int { - 1 //controllers.count + controllers.count } public override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { @@ -97,13 +97,7 @@ public class TableViewTestController: UITableViewController, Initable { public override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { guard let vc = controllers[indexPath.section] as? Componentable, let cell = tableView.dequeueReusableCell(withIdentifier: "cell") as? VDSCell else { return UITableViewCell() } - //let component = vc.getCompontent() - let component = TrailingTooltipLabel() - component.labelText = "Label Component" - component.labelTextStyle = .bodyLarge - component.tooltipTitle = "5G Ultra Wideband is available in your area." - component.tooltipContent = "$799.99 (128 GB only) device payment purchase w/new or upgrade smartphone line on postpaid 5G Unlimited plans only req'd. Less up to $800 trade-in/promo credit applied over 36 mos.; promo credit ends if eligibility req’s are no longer met; 0% APR. Trade-in conditions apply.$799.99 (128 GB only) device payment purchase w/new or upgrade smartphone line on postpaid 5G Unlimited plans only req'd. Less up to $800 trade-in." - + let component = vc.getCompontent() cell.subviews.forEach { $0.removeFromSuperview() } cell.addSubview(component) component.pinToSuperView()