diff --git a/PodcastsClone/View/Podcast/PodcastDetailView.swift b/PodcastsClone/View/Podcast/PodcastDetailView.swift index 7db8181..6fbd033 100644 --- a/PodcastsClone/View/Podcast/PodcastDetailView.swift +++ b/PodcastsClone/View/Podcast/PodcastDetailView.swift @@ -71,11 +71,23 @@ struct PodcastDetailView: View { Color.theme.background.ignoresSafeArea(.all, edges: .all) VStack(alignment: .leading) { - Text("Episodes") - .font(.title2) - .fontWeight(.bold) - .foregroundColor(Color.theme.primary) - .padding() + HStack { + Text(Strings.episodes) + .font(.title2) + .fontWeight(.bold) + .foregroundColor(Color.theme.primary) + .padding() + + Image(systemName: "chevron.down") + .foregroundColor(Color.theme.accent) + + Spacer() + + Text(Strings.seeAll) + .foregroundColor(Color.theme.accent) + .padding(.trailing) + } + ForEach(podcast.episodes, id: \.id) { episode in EpisodeViewCell(episode: episode) @@ -84,7 +96,7 @@ struct PodcastDetailView: View { } } } - } + } } } diff --git a/PodcastsClone/View/Strings/Strings.swift b/PodcastsClone/View/Strings/Strings.swift index 66f2cfb..27deab7 100644 --- a/PodcastsClone/View/Strings/Strings.swift +++ b/PodcastsClone/View/Strings/Strings.swift @@ -12,4 +12,6 @@ struct Strings { static let classySeparator = "ยท" static let latestEpisode = "Latest Episode" static let readFurtherPrompt = "MORE" + static let episodes = "Episodes" + static let seeAll = "See All" } diff --git a/README.md b/README.md index 89a0264..04e5e55 100644 --- a/README.md +++ b/README.md @@ -79,4 +79,5 @@ Concerning the View part of this project: * throughout the app, the smart date formattings are close to the original app, but not quite as smart. * the top bar was left unimplemented * the "now playing bar" and the tabview don't have the same transparency / colors +* instead of i18, this clone has a very basic struct that provides static strings at need. Some string literals are still being used in the views. * and many others will join this list, no doubt.