diff --git a/pass/Controllers/PasswordEditorTableViewController.swift b/pass/Controllers/PasswordEditorTableViewController.swift index e017b95..127850a 100644 --- a/pass/Controllers/PasswordEditorTableViewController.swift +++ b/pass/Controllers/PasswordEditorTableViewController.swift @@ -207,6 +207,17 @@ class PasswordEditorTableViewController: UITableViewController { return 44 } + override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { + switch tableData[indexPath.section][indexPath.row][PasswordEditorCellKey.type] as! PasswordEditorCellType { + case .passwordLengthCell, .passwordGroupsCell: + return 42 + case .passwordUseDigitsCell, .passwordVaryCasesCell, .passwordUseSpecialSymbols, .passwordFlavorCell: + return 42 + default: + return UITableView.automaticDimension + } + } + override func numberOfSections(in tableView: UITableView) -> Int { return tableData.count } diff --git a/pass/Views/SwitchTableViewCell.xib b/pass/Views/SwitchTableViewCell.xib index 645e287..9a9b415 100644 --- a/pass/Views/SwitchTableViewCell.xib +++ b/pass/Views/SwitchTableViewCell.xib @@ -26,7 +26,7 @@ - + @@ -34,9 +34,8 @@ - - - + +