From d43c594c7efe99a11d1b6e43241c6eb239130518 Mon Sep 17 00:00:00 2001 From: joho2022 Date: Sat, 18 Jan 2025 02:45:10 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20#33=20-=20=ED=81=AC=EA=B8=B0?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=20=EA=B0=9C=EC=84=A0=EB=90=9C=20=EC=83=81?= =?UTF-8?q?=ED=92=88=EC=85=80=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Presentation/Market/View/MarketView.swift | 7 +++++-- .../Presentation/Search/View/SearchView.swift | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Market/View/MarketView.swift b/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Market/View/MarketView.swift index cfa5ed3..5d71e1a 100644 --- a/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Market/View/MarketView.swift +++ b/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Market/View/MarketView.swift @@ -76,18 +76,21 @@ struct MarketView: View { ForEach(sellProducts) { product in ProductItemView( product: product, - isLikeButtonExist: false + isLikeButtonExist: false, + width: 160 ) } } else { ForEach(buyProducts) { product in ProductItemView( product: product, - isLikeButtonExist: false + isLikeButtonExist: false, + width: 160 ) } } } + .frame(height: 254) } .padding(.horizontal, 20) } diff --git a/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Search/View/SearchView.swift b/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Search/View/SearchView.swift index a5763d7..b5781eb 100644 --- a/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Search/View/SearchView.swift +++ b/Napzakmarket-iOS/Napzakmarket-iOS/Presentation/Search/View/SearchView.swift @@ -133,18 +133,21 @@ extension SearchView { ForEach(sellProducts) { product in ProductItemView( product: product, - isLikeButtonExist: true + isLikeButtonExist: true, + width: 160 ) } } else if selectedIndex == 1 { ForEach(buyProducts) { product in ProductItemView( product: product, - isLikeButtonExist: true + isLikeButtonExist: true, + width: 160 ) } } } + .frame(height: 254) } } .padding(.horizontal, 20)