UI improvements
This commit is contained in:
parent
01a29333ae
commit
4904b81da0
4 changed files with 139 additions and 139 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue