Added missing constraints to the UISwitch elements

This commit is contained in:
Flowinho
2020-03-12 17:56:43 +01:00
parent 22b9e7b54b
commit 97c79202fc
2 changed files with 39 additions and 28 deletions

View File

@@ -38,6 +38,8 @@ class SettingsViewController: UITableViewController {
tableView.register(UINib(nibName: "SettingsAccountTableViewCell", bundle: nil), forCellReuseIdentifier: "SettingsAccountTableViewCell")
tableView.register(UINib(nibName: "SettingsTableViewCell", bundle: nil), forCellReuseIdentifier: "SettingsTableViewCell")
tableView.rowHeight = UITableView.automaticDimension
tableView.estimatedRowHeight = 44
}
override func viewWillAppear(_ animated: Bool) {
@@ -236,7 +238,7 @@ class SettingsViewController: UITableViewController {
}
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return super.tableView(tableView, heightForRowAt: IndexPath(row: 0, section: 1))
return UITableView.automaticDimension
}
override func tableView(_ tableView: UITableView, indentationLevelForRowAt indexPath: IndexPath) -> Int {