EXEMPLO de uma forma mais atualizada:
// Conteúdo da tabela: override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let refeicaoDaVez = refeicoes[indexPath.row]
let cell = UITableViewCell(style: .default, reuseIdentifier: nil)
var content = cell.defaultContentConfiguration()
content.text = refeicaoDaVez
cell.contentConfiguration = content
return cell
}
Fonte: https://developer.apple.com/documentation/uikit/uilistcontentconfiguration