From b80723c96410bc4918c4663e8f5a72815b91b4b2 Mon Sep 17 00:00:00 2001 From: oliverhnat Date: Thu, 17 Aug 2023 11:35:01 +0200 Subject: [PATCH] Switched the assignment size to each symbol --- Set/SetGameView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Set/SetGameView.swift b/Set/SetGameView.swift index 3fe8fad..e313944 100644 --- a/Set/SetGameView.swift +++ b/Set/SetGameView.swift @@ -87,7 +87,7 @@ struct CardView: View { VStack { ForEach (0.. some View { + private func createShape(height: CGFloat) -> some View { switch symbol { case .diamond: colorShape(Diamond()) + .frame(height: height) case .squiggles: colorShape(Rectangle()) + .frame(height: height) default: colorShape(RoundedRectangle(cornerRadius: 100)) + .frame(height: height) } }