diff --git a/MVMCoreUI/Atomic/Molecules/Items/MoleculeCollectionViewCell.swift b/MVMCoreUI/Atomic/Molecules/Items/MoleculeCollectionViewCell.swift index f6fe580f..04694bc1 100644 --- a/MVMCoreUI/Atomic/Molecules/Items/MoleculeCollectionViewCell.swift +++ b/MVMCoreUI/Atomic/Molecules/Items/MoleculeCollectionViewCell.swift @@ -30,7 +30,6 @@ open class MoleculeCollectionViewCell: CollectionViewCell { open override func reset() { super.reset() molecule?.reset() - backgroundColor = .mvmWhite } open override class func nameForReuse(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> String? { diff --git a/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift b/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift index 7f088b4c..04fc5e70 100644 --- a/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift +++ b/MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift @@ -148,11 +148,9 @@ open class Carousel: View { guard let carouselModel = model as? CarouselModel else { return } accessibilityLabel = carouselModel.accessibilityText - collectionView.backgroundColor = backgroundColor collectionView.layer.borderColor = UIColor.black.cgColor collectionView.layer.borderWidth = (carouselModel.border ?? false) ? 1 : 0 (collectionView.collectionViewLayout as? CarouselCollectionLayout)?.useLines = (carouselModel.border ?? false) - backgroundColor = .white (collectionView.collectionViewLayout as? UICollectionViewFlowLayout)?.minimumLineSpacing = carouselModel.spacing ?? 0 itemWidthPercent = carouselModel.itemWidthPercent / 100.0 diff --git a/MVMCoreUI/BaseClasses/CollectionViewCell.swift b/MVMCoreUI/BaseClasses/CollectionViewCell.swift index ce910bfb..4ac48dfc 100644 --- a/MVMCoreUI/BaseClasses/CollectionViewCell.swift +++ b/MVMCoreUI/BaseClasses/CollectionViewCell.swift @@ -87,7 +87,7 @@ open class CollectionViewCell: UICollectionViewCell, MoleculeViewProtocol, MVMCo open func reset() { molecule?.reset() - backgroundColor = .mvmWhite + backgroundColor = .clear width = nil }