background color set to clear like android
This commit is contained in:
parent
c25e6369a4
commit
256927760f
@ -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? {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -87,7 +87,7 @@ open class CollectionViewCell: UICollectionViewCell, MoleculeViewProtocol, MVMCo
|
||||
|
||||
open func reset() {
|
||||
molecule?.reset()
|
||||
backgroundColor = .mvmWhite
|
||||
backgroundColor = .clear
|
||||
width = nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user