"Fix" content inset (IOS-241)

This commit is contained in:
Nathan Mattes 2024-07-10 13:34:57 +02:00
parent 6702f0624c
commit 65075c5404

View File

@ -80,6 +80,7 @@ class NotificationPolicyViewController: UIViewController {
tableView = UITableView(frame: .zero, style: .insetGrouped)
tableView.translatesAutoresizingMaskIntoConstraints = false
tableView.register(NotificationPolicyFilterTableViewCell.self, forCellReuseIdentifier: NotificationPolicyFilterTableViewCell.reuseIdentifier)
tableView.contentInset.top = -20
super.init(nibName: nil, bundle: nil)
@ -168,6 +169,8 @@ class NotificationPolicyViewController: UIViewController {
}
}
//MARK: - UITableViewDelegate
extension NotificationPolicyViewController: UITableViewDelegate {
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(at: indexPath, animated: true)