background color set to clear like android

This commit is contained in:
Pfeil, Scott Robert 2020-10-22 13:06:26 -04:00
parent c25e6369a4
commit 256927760f
3 changed files with 1 additions and 4 deletions

View File

@ -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? {

View File

@ -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

View File

@ -87,7 +87,7 @@ open class CollectionViewCell: UICollectionViewCell, MoleculeViewProtocol, MVMCo
open func reset() {
molecule?.reset()
backgroundColor = .mvmWhite
backgroundColor = .clear
width = nil
}