Skip to content

Commit

Permalink
ALFMOB-40: Used more suitable component for wishlist items
Browse files Browse the repository at this point in the history
  • Loading branch information
timea-v committed Nov 15, 2024
1 parent 0900ba9 commit 31b579b
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Alfie/Alfie/Views/WishListView/WishListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,18 @@ struct WishListView: View {
var body: some View {
#if DEBUG
ScrollView {
VStack(alignment: .leading, spacing: Spacing.space200) {
LazyVGrid(
columns: Array(
repeating: GridItem(.flexible(), spacing: Spacing.space200, alignment: .top),
count: 2
),
spacing: Spacing.space200
) {
ForEach(mockContent.wishlistProducts) { product in
HorizontalProductCard(
product: product,
colorTitle: LocalizableProductDetails.$color + ":",
sizeTitle: LocalizableProductDetails.$size + ":",
oneSizeTitle: LocalizableProductDetails.$oneSize
)
VerticalProductCard(
configuration: .init(size: .medium, hideAction: true),
product: product
) { _, _ in }
}
}
.padding(.horizontal, Spacing.space200)
Expand Down

0 comments on commit 31b579b

Please sign in to comment.