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
742 B
28 lines
742 B
import SwiftUI
|
|
|
|
struct RankingView {
|
|
let ranking : Ranking?
|
|
let player : Player?
|
|
var body : some View {
|
|
VStack(alignment: .leading, spacing: 20)
|
|
Color.purple
|
|
Text("RANKING") // TODO : penser à créer un style pour les textes
|
|
.font(.Title)
|
|
.foregroundColor(.white)
|
|
Text(ranking.getRank(of:player.id))
|
|
.font(.LargeTitle)
|
|
.fontWeight(.bold)
|
|
.foregroundColor(.white)
|
|
Text("Singles")
|
|
.font(.Title2)
|
|
.foregroundColor(.white)
|
|
}
|
|
}
|
|
|
|
// TODO verifier si c'est comme ça qu'on fait les previews (il me semble qu'il faut mettre un # preview plutôt que ça)
|
|
|
|
struct RankingView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
RankingView()
|
|
}
|
|
} |