pass array of map coordinates to a draw a route on map in swift
问题 hi I have an array of coordinates data like this, which is retrieved from an API call, and I use a for loop to append the data into an array like this: extension TripListViewController: UITableViewDelegate { func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { performSegue(withIdentifier: Constants.segueTripListToTripMap, sender: indexPath) tableView.deselectRow(at: indexPath, animated: true) } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if