connect episode detail to feed
MODIFY
Podcast/FeedViewController.swift
Podcast/FeedViewController.swift
@@ -86,9 +86,10 @@ class FeedViewController: UIViewController, UITableViewDelegate, UITableViewData
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
-
-// guard let cell = feedTableView.cellForRow(at: indexPath) as? CardTableViewCell else { return }
-
+ guard let episodeCard = cards[indexPath.row] as? EpisodeCard else { return }
+ let episodeViewController = EpisodeDetailViewController()
+ episodeViewController.episode = episodeCard.episode
+ navigationController?.pushViewController(episodeViewController, animated: true)
}

connect episode detail to feed