From 2e9b8e20c1a377100517d75698f7925f9dfcb8e2 Mon Sep 17 00:00:00 2001 From: eemdeeks Date: Sat, 20 Jan 2024 18:44:10 +0900 Subject: [PATCH] =?UTF-8?q?add:=20testView=20=EA=B5=AC=ED=98=84(#128)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/PlayerSelectionView.swift | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Projects/Presentation/Sources/PlayerSelectionView.swift diff --git a/Projects/Presentation/Sources/PlayerSelectionView.swift b/Projects/Presentation/Sources/PlayerSelectionView.swift new file mode 100644 index 0000000..179bee3 --- /dev/null +++ b/Projects/Presentation/Sources/PlayerSelectionView.swift @@ -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() +}