Accessing data from different screens – swift – Ios swift
I am trying to get data from a different screen but for some reason, the variable does not update. here is the code so far func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { let viewController: UIViewController = UIViewController() switch (indexPath.row)…