💄 £Spruce up the podcast detail view

and update the Readme again
pull/1/head
Alexis Drai 2 years ago
parent d70182ffb9
commit 69aa2bda9e

@ -71,12 +71,24 @@ struct PodcastDetailView: View {
Color.theme.background.ignoresSafeArea(.all, edges: .all) Color.theme.background.ignoresSafeArea(.all, edges: .all)
VStack(alignment: .leading) { VStack(alignment: .leading) {
Text("Episodes") HStack {
Text(Strings.episodes)
.font(.title2) .font(.title2)
.fontWeight(.bold) .fontWeight(.bold)
.foregroundColor(Color.theme.primary) .foregroundColor(Color.theme.primary)
.padding() .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 ForEach(podcast.episodes, id: \.id) { episode in
EpisodeViewCell(episode: episode) EpisodeViewCell(episode: episode)
} }

@ -12,4 +12,6 @@ struct Strings {
static let classySeparator = "·" static let classySeparator = "·"
static let latestEpisode = "Latest Episode" static let latestEpisode = "Latest Episode"
static let readFurtherPrompt = "MORE" static let readFurtherPrompt = "MORE"
static let episodes = "Episodes"
static let seeAll = "See All"
} }

@ -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. * 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 top bar was left unimplemented
* the "now playing bar" and the tabview don't have the same transparency / colors * 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. * and many others will join this list, no doubt.

Loading…
Cancel
Save