From 256927760f5773177a440bcecbab0b2a294bf592 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Thu, 22 Oct 2020 13:06:26 -0400 Subject: [PATCH] background color set to clear like android --- .../Atomic/Molecules/Items/MoleculeCollectionViewCell.swift | 1 - MVMCoreUI/Atomic/Organisms/Carousel/Carousel.swift | 2 -- MVMCoreUI/BaseClasses/CollectionViewCell.swift | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) 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 }