You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
580 B

//
// EpisodeView.swift
// MySwiftUi
//
// Created by etudiant on 16/05/2023.
//
import SwiftUI
struct EpisodeView: View {
let episode: Episode
var body: some View {
VStack(alignment: .leading) {
Text(episode.date)
.font(.headline)
Text(episode.titre)
.font(.subheadline)
.foregroundColor(.blue)
Text(episode.description)
.foregroundColor(.gray)
}
.padding()
.background(Color.gray.opacity(0.2))
.cornerRadius(10)
}
}