Skip to content

Commit

Permalink
[Refactor] #33 - 크기적용 개선된 상품셀 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
joho2022 committed Jan 17, 2025
1 parent 04ecba2 commit d43c594
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d43c594

Please sign in to comment.