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() {
|
open override func reset() {
|
||||||
super.reset()
|
super.reset()
|
||||||
molecule?.reset()
|
molecule?.reset()
|
||||||
backgroundColor = .mvmWhite
|
|
||||||
}
|
}
|
||||||
|
|
||||||
open override class func nameForReuse(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?) -> String? {
|
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 }
|
guard let carouselModel = model as? CarouselModel else { return }
|
||||||
accessibilityLabel = carouselModel.accessibilityText
|
accessibilityLabel = carouselModel.accessibilityText
|
||||||
collectionView.backgroundColor = backgroundColor
|
|
||||||
collectionView.layer.borderColor = UIColor.black.cgColor
|
collectionView.layer.borderColor = UIColor.black.cgColor
|
||||||
collectionView.layer.borderWidth = (carouselModel.border ?? false) ? 1 : 0
|
collectionView.layer.borderWidth = (carouselModel.border ?? false) ? 1 : 0
|
||||||
(collectionView.collectionViewLayout as? CarouselCollectionLayout)?.useLines = (carouselModel.border ?? false)
|
(collectionView.collectionViewLayout as? CarouselCollectionLayout)?.useLines = (carouselModel.border ?? false)
|
||||||
backgroundColor = .white
|
|
||||||
(collectionView.collectionViewLayout as? UICollectionViewFlowLayout)?.minimumLineSpacing = carouselModel.spacing ?? 0
|
(collectionView.collectionViewLayout as? UICollectionViewFlowLayout)?.minimumLineSpacing = carouselModel.spacing ?? 0
|
||||||
|
|
||||||
itemWidthPercent = carouselModel.itemWidthPercent / 100.0
|
itemWidthPercent = carouselModel.itemWidthPercent / 100.0
|
||||||
|
|||||||
@ -87,7 +87,7 @@ open class CollectionViewCell: UICollectionViewCell, MoleculeViewProtocol, MVMCo
|
|||||||
|
|
||||||
open func reset() {
|
open func reset() {
|
||||||
molecule?.reset()
|
molecule?.reset()
|
||||||
backgroundColor = .mvmWhite
|
backgroundColor = .clear
|
||||||
width = nil
|
width = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user