Made settings selection color match app selection color.

This commit is contained in:
Maurice Parker
2019-04-28 14:39:35 -05:00
parent c4c67dec6e
commit 9b17f3394f
2 changed files with 15 additions and 0 deletions

View File

@@ -42,6 +42,14 @@ class SettingsViewController: UITableViewController {
tableView.tableFooterView = buildLabel
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = super.tableView(tableView, cellForRowAt: indexPath)
let bgView = UIView()
bgView.backgroundColor = AppAssets.selectionBackgroundColor
cell.selectedBackgroundView = bgView
return cell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {