parent
73e0a8ee53
commit
5c83ec0483
@ -0,0 +1,59 @@
|
|||||||
|
import SwiftUI
|
||||||
|
|
||||||
|
struct IgaSwiatekView: View {
|
||||||
|
var body: some View {
|
||||||
|
ZStack {
|
||||||
|
Color.purple.edgesIgnoringSafeArea(.all)
|
||||||
|
VStack(alignment: .leading, spacing: 20) {
|
||||||
|
Text("Iga Swiatek")
|
||||||
|
.font(.largeTitle)
|
||||||
|
.fontWeight(.bold)
|
||||||
|
.foregroundColor(.white)
|
||||||
|
|
||||||
|
HStack {
|
||||||
|
Image(systemName: "flag.fill")
|
||||||
|
.foregroundColor(.white)
|
||||||
|
Text("POLAND")
|
||||||
|
.foregroundColor(.white)
|
||||||
|
}
|
||||||
|
|
||||||
|
HStack {
|
||||||
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
|
Text("Height")
|
||||||
|
.fontWeight(.semibold)
|
||||||
|
Text("5' 9\"")
|
||||||
|
}
|
||||||
|
Spacer()
|
||||||
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
|
Text("Age")
|
||||||
|
.fontWeight(.semibold)
|
||||||
|
Text("22")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.foregroundColor(.white)
|
||||||
|
|
||||||
|
HStack {
|
||||||
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
|
Text("Plays")
|
||||||
|
.fontWeight(.semibold)
|
||||||
|
Text("Right-Handed")
|
||||||
|
}
|
||||||
|
Spacer()
|
||||||
|
VStack(alignment: .leading, spacing: 10) {
|
||||||
|
Text("Birthplace")
|
||||||
|
.fontWeight(.semibold)
|
||||||
|
Text("Warsaw, Poland")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.foregroundColor(.white)
|
||||||
|
}
|
||||||
|
.padding()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
struct IgaSwiatekView_Previews: PreviewProvider {
|
||||||
|
static var previews: some View {
|
||||||
|
IgaSwiatekView()
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,12 @@
|
|||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct RankingView {
|
struct RankingView {
|
||||||
|
let ranking : Ranking?
|
||||||
|
let player : Player?
|
||||||
|
var body : some View {
|
||||||
|
VStack(alignment: .leading)
|
||||||
|
Text("RANKING")
|
||||||
|
Text(ranking.getRank(of:player.id))
|
||||||
|
Text("Singles")
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue