I honestly have know idea anymore how to fix this conversion issue.
This is my array:
var family = [
["Angelfish", "Butterflyfish", "Surgeonfish"],
["Manatees", "Dolphins", "Whales"],
["Rays", "Sharks"],
["Triggerfish", "Porcupinefish", "Pufferfish", "Boxfish", "Trumpetfish"],
["Sea Turtles"],
["Moray Eels"]
]
This is my action for the row selection:
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let familyVC = FamilyVC()
familyVC.customInit(familyIndex: indexPath.row, title: family[indexPath.row])
self.navigationController?.pushViewController(familyVC, animated: true)
tableView.deselectRow(at: indexPath, animated: true)
}