Update SwiftLint to version 0.52.x, fix new violations or disable them (#618)
This commit is contained in:
parent
d9bd0f3014
commit
ba1a81170b
6 changed files with 16 additions and 10 deletions
|
|
@ -491,9 +491,8 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
|||
override func tableView(_: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
||||
if tableData[section].header != nil {
|
||||
return 30
|
||||
} else {
|
||||
return UITableView.automaticDimension
|
||||
}
|
||||
return UITableView.automaticDimension
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
|
||||
|
|
|
|||
|
|
@ -209,13 +209,11 @@ class PasswordEditorTableViewController: UITableViewController {
|
|||
if sectionHeaderTitles[section] != nil {
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
return 30
|
||||
} else {
|
||||
// Fix covered section header in macOS
|
||||
return 36
|
||||
}
|
||||
} else {
|
||||
return UITableView.automaticDimension
|
||||
// Fix covered section header in macOS
|
||||
return 36
|
||||
}
|
||||
return UITableView.automaticDimension
|
||||
}
|
||||
|
||||
override func tableView(_: UITableView, heightForFooterInSection _: Int) -> CGFloat {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class PasswordNavigationViewController: UIViewController {
|
|||
let addPasswordButton = UIButton(type: .system)
|
||||
let plusImage = UIImage(systemName: "plus.circle", withConfiguration: UIImage.SymbolConfiguration(weight: .regular))
|
||||
addPasswordButton.setImage(plusImage, for: .normal)
|
||||
addPasswordButton.addTarget(self, action: #selector(self.addPasswordAction), for: .touchDown)
|
||||
addPasswordButton.addTarget(self, action: #selector(addPasswordAction), for: .touchDown)
|
||||
addPasswordUIBarButtonItem.customView = addPasswordButton
|
||||
return addPasswordUIBarButtonItem
|
||||
}()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue