 
 struct AppearanceSettingsSection {
     let headerTitle: String
+    let footerText: String?
     let items: [AppearanceSettingsItem]
 }
 

        header?.text = sections[section].headerTitle
        return header!.height(withExpectedWidth: self.view.frame.width)
    }

}

        return cell
    }
    
    func handleImageDimmingSwitchValueChange(_ sender: UISwitch) {
        print("handleImageDimmingSwitchValueChange")
    }
    
    func handleAutoNightModeSwitchValueChange(_ sender: UISwitch) {
        print("handleAutoNightModeSwitchValueChange")
    }
    
    func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
        let header = WMFTableHeaderLabelView.wmf_viewFromClassNib()
        //        if let th = header as Themeable? {
        //            th.apply(theme: theme)
        //        }
        header?.text = sections[section].headerTitle
        return header
    }
    
    func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
        let footer = WMFTableHeaderLabelView.wmf_viewFromClassNib()
        //        if let th = header as Themeable? {
        //            th.apply(theme: theme)
        //        }
        footer?.text = sections[section].footerText
        return footer
    }
    
    func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
        guard let footerText = sections[section].footerText else {
            return 0
        }
        
        let footer = WMFTableHeaderLabelView.wmf_viewFromClassNib()
        footer?.text = footerText
        return footer!.height(withExpectedWidth: self.view.frame.width)
    }
    
    func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
