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.
 
 
PadelClub/PadelClub/Views/Tournament/Shared/TournamentCellView.swift

33 lines
902 B

//
// TournamentCellView.swift
// PadelClub
//
// Created by Razmig Sarkissian on 29/02/2024.
//
import SwiftUI
struct TournamentCellView: View {
let tournament: Tournament
let color: Color = .black
var body: some View {
HStack(alignment: .top) {
DateBoxView(date: tournament.startDate)
Rectangle()
.fill(color)
.frame(width: 2)
VStack(alignment: .leading, spacing: -2) {
Text(tournament.subtitle())
.font(.caption2)
Text(tournament.tournamentLevel.localizedLabel())
.font(.title)
Text(tournament.tournamentCategory.localizedLabel())
.font(.caption2)
Text(tournament.federalTournamentAge.localizedLabel())
.font(.caption2)
}
}
}
}