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.
30 lines
835 B
30 lines
835 B
struct PlayerProfileView: View {
|
|
var player: Player
|
|
|
|
var body: some View {
|
|
HStack(spacing: 15) {
|
|
Text("\(player.rank)")
|
|
.font(.largeTitle)
|
|
.fontWeight(.bold)
|
|
.foregroundColor(.purple)
|
|
|
|
Image(player.image)
|
|
.resizable()
|
|
.aspectRatio(contentMode: .fill)
|
|
.frame(width: 50, height: 50)
|
|
.clipShape(Circle())
|
|
|
|
Text(player.name.uppercased())
|
|
.font(.title2)
|
|
.fontWeight(.semibold)
|
|
|
|
Spacer()
|
|
|
|
Label(player.country, systemImage: "flag.fill")
|
|
.labelStyle(.titleAndIcon)
|
|
.foregroundColor(.red)
|
|
}
|
|
.padding(.horizontal)
|
|
}
|
|
}
|