UI improvements

This commit is contained in:
Mingshen Sun 2023-03-13 21:33:54 -07:00
parent 01a29333ae
commit 4904b81da0
4 changed files with 139 additions and 139 deletions

View file

@ -62,7 +62,6 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
tableView.addGestureRecognizer(tapGesture)
tapGesture.delegate = self
tableView.contentInset = UIEdgeInsets(top: -36, left: 0, bottom: 44, right: 0)
tableView.rowHeight = UITableView.automaticDimension
tableView.estimatedRowHeight = 52
@ -489,6 +488,14 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
tableData[section].header
}
override func tableView(_: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if tableData[section].header != nil {
return 30
} else {
return UITableView.automaticDimension
}
}
override func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
if section == tableData.count - 1 {
let view = UIView()