Skip to content

Commit

Permalink
add: testView 구현(#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
eemdeeks committed Jan 20, 2024
1 parent 14990e1 commit 2e9b8e2
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions Projects/Presentation/Sources/PlayerSelectionView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
//
// PlayerSelectionView.swift
// Presentation
//
// Created by 박승찬 on 1/20/24.
// Copyright © 2024 com.pivoters. All rights reserved.
//

import SwiftUI

import Domain

struct PlayerSelectionView: View {

let columns = Array(repeating: GridItem(.flexible()), count: 4)
var body: some View {
ScrollView {
LazyVGrid(columns: columns, spacing: 28) {
addPlayerCell()

}
}
}

func addPlayerCell() -> some View {
VStack {
Image(systemName: "plus")
}
}
}

struct PlayerCell: View {
@Binding var player: Player
var body: some View {
VStack {
Text("\(player.name)")
}
}
}

#Preview {
PlayerSelectionView()
}

0 comments on commit 2e9b8e2

Please sign in to comment.