mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Use a constant for section & footer height
This commit is contained in:
@@ -24,6 +24,7 @@ final class RoomInfoListViewController: UIViewController {
|
||||
|
||||
private enum Constants {
|
||||
static let defaultStyleCellReuseIdentifier = "default"
|
||||
static let tableViewSectionMinHeight: CGFloat = 8.0
|
||||
}
|
||||
|
||||
// MARK: - Properties
|
||||
@@ -370,14 +371,14 @@ extension RoomInfoListViewController: UITableViewDelegate {
|
||||
|
||||
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
|
||||
if sections[section].header == nil {
|
||||
return 8
|
||||
return Constants.tableViewSectionMinHeight
|
||||
}
|
||||
return UITableView.automaticDimension
|
||||
}
|
||||
|
||||
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
|
||||
if sections[section].footer == nil {
|
||||
return 8
|
||||
return Constants.tableViewSectionMinHeight
|
||||
}
|
||||
return UITableView.automaticDimension
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user