From 31f01773c4395e7e67b86f00977e90fa78a27ae8 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Tue, 27 Aug 2024 11:44:10 -0500 Subject: [PATCH] added borders to the cells for carousel Signed-off-by: Matt Bruce --- VDS/Components/Carousel/Carousel.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/VDS/Components/Carousel/Carousel.swift b/VDS/Components/Carousel/Carousel.swift index debe9042..a2dd4d7d 100644 --- a/VDS/Components/Carousel/Carousel.swift +++ b/VDS/Components/Carousel/Carousel.swift @@ -520,6 +520,11 @@ extension Carousel: UICollectionViewDelegate, UICollectionViewDataSource, UIColl let component = views[indexPath.row] cell.update(with: component, slotAlignment: slotAlignment, surface: surface) cell.layoutIfNeeded() + if hasDebugBorder { + cell.addDebugBorder() + } else { + cell.removeDebugBorder() + } return cell }