Signed-off-by: Matt Bruce <matt.bruce@verizon.com>

This commit is contained in:
Matt Bruce 2022-11-21 10:53:42 -06:00
parent 088447bb65
commit 9e7e6fe12d

View File

@ -35,7 +35,6 @@ class MenuCell: UITableViewCell {
func setup(){
addSubview(label)
label.pinToSuperView(.init(top: 0, left: 16, bottom: 0, right: 0))
label.height(50)
}
}
@ -70,6 +69,10 @@ class MenuViewController: UITableViewController {
items.count
}
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 50.0
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
guard items.count > indexPath.row,
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as? MenuCell