Modules screen: Fix section headers not visible

This commit is contained in:
Antonio 2023-12-19 18:07:51 +01:00
parent 67c5baee2b
commit 07de9ac4a9

View file

@ -353,6 +353,14 @@ extension PeripheralModulesViewController: UITableViewDataSource {
return LocalizationManager.shared.localizedString(localizationKey)
}
func tableView(_ tableView: UITableView, willDisplayHeaderView view: UIView, forSection section: Int){
// Make section titles white
if let header = view as? UITableViewHeaderFooterView {
header.textLabel?.textColor = UIColor.white
}
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
var reuseIdentifier: String