updated table code
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
ef961270ab
commit
6369bdd09b
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user