From cef7da359dd673ecf84adcfeb465f3d149a12681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=8F=84=ED=98=95?= <108233361+ShapeKim98@users.noreply.github.com> Date: Sun, 27 Oct 2024 15:43:33 +0900 Subject: [PATCH] =?UTF-8?q?[design]=20#154=20RemindView=20=EB=A7=81?= =?UTF-8?q?=ED=81=AC=EB=AA=A9=EB=A1=9D=20spacing=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Remind/RemindView.swift | 44 ++++++++++--------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/Projects/Feature/FeatureRemind/Sources/Remind/RemindView.swift b/Projects/Feature/FeatureRemind/Sources/Remind/RemindView.swift index d44e9238..f18b0118 100644 --- a/Projects/Feature/FeatureRemind/Sources/Remind/RemindView.swift +++ b/Projects/Feature/FeatureRemind/Sources/Remind/RemindView.swift @@ -266,16 +266,18 @@ extension RemindView { .padding(.bottom, 16) } - ForEach(unreadContents, id: \.id) { content in - let isFirst = content == unreadContents.elements.first - let isLast = content == unreadContents.elements.last - - PokitLinkCard( - link: content, - action: { send(.컨텐츠_항목_눌렀을때(content: content)) }, - kebabAction: { send(.컨텐츠_항목_케밥_버튼_눌렀을때(content: content)) } - ) - .divider(isFirst: isFirst, isLast: isLast) + VStack(spacing: 20) { + ForEach(unreadContents, id: \.id) { content in + let isFirst = content == unreadContents.elements.first + let isLast = content == unreadContents.elements.last + + PokitLinkCard( + link: content, + action: { send(.컨텐츠_항목_눌렀을때(content: content)) }, + kebabAction: { send(.컨텐츠_항목_케밥_버튼_눌렀을때(content: content)) } + ) + .divider(isFirst: isFirst, isLast: isLast) + } } } } @@ -300,16 +302,18 @@ extension RemindView { ) .padding(.top, 16) } else { - ForEach(favoriteContents, id: \.id) { content in - let isFirst = content == favoriteContents.elements.first - let isLast = content == favoriteContents.elements.last - - PokitLinkCard( - link: content, - action: { send(.컨텐츠_항목_눌렀을때(content: content)) }, - kebabAction: { send(.컨텐츠_항목_케밥_버튼_눌렀을때(content: content)) } - ) - .divider(isFirst: isFirst, isLast: isLast) + VStack(spacing: 20) { + ForEach(favoriteContents, id: \.id) { content in + let isFirst = content == favoriteContents.elements.first + let isLast = content == favoriteContents.elements.last + + PokitLinkCard( + link: content, + action: { send(.컨텐츠_항목_눌렀을때(content: content)) }, + kebabAction: { send(.컨텐츠_항목_케밥_버튼_눌렀을때(content: content)) } + ) + .divider(isFirst: isFirst, isLast: isLast) + } } } }