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/Club/ClubRowView.swift

29 lines
625 B

//
// ClubRowView.swift
// PadelClub
//
// Created by Razmig Sarkissian on 27/03/2024.
//
import SwiftUI
struct ClubRowView: View {
let club: Club
var displayContext: DisplayContext = .edition
var body: some View {
LabeledContent {
// if displayContext == .edition {
// Image(systemName: club.isFavorite() ? "star.fill" : "star")
// .foregroundStyle(club.isFavorite() ? .green : .logoRed)
// }
} label: {
Text(club.name)
Text(club.acronym)
}
}
}
#Preview {
ClubRowView(club: Club.mock())
}