For starters, update the following datasource methods
func numberOfSections(in tableView: UITableView) -> Int {
return finalDict.count
}
func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
let titles = Array(finalDict.keys)
return titles[section]
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
let titles = Array(finalDict.keys)
let currentTitle = titles[section]
let values = finalDict[currentTitle] as! [String]
return values.count
}
13
solved How to display data in table view in swift 3?