Fix covered section header in macOS
This commit is contained in:
parent
da5aa61986
commit
bd659c2fc3
3 changed files with 95 additions and 93 deletions
|
|
@ -207,7 +207,12 @@ class PasswordEditorTableViewController: UITableViewController {
|
|||
|
||||
override func tableView(_: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
||||
if sectionHeaderTitles[section] != nil {
|
||||
return 30
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
return 30
|
||||
} else {
|
||||
// Fix covered section header in macOS
|
||||
return 36
|
||||
}
|
||||
} else {
|
||||
return UITableView.automaticDimension
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue