spaces removed

This commit is contained in:
Damodaram 2020-06-19 19:13:25 +05:30
parent c4297a5936
commit 57c3ed3c12
2 changed files with 3 additions and 4 deletions

View File

@ -10,8 +10,6 @@ import Foundation
@objcMembers public class CarouselItemModel: MoleculeCollectionItemModel, CarouselItemModelProtocol {
public var analyticsData: JSONValueDictionary?
//--------------------------------------------------
// MARK: - Properties
//--------------------------------------------------
@ -22,6 +20,7 @@ import Foundation
public var peakingUI: Bool?
public var peakingArrowColor: Color?
public var analyticsData: JSONValueDictionary?
//--------------------------------------------------
// MARK: - Keys

View File

@ -165,7 +165,6 @@ open class Carousel: View {
pageIndex = carouselModel.index
pagingView?.currentIndex = carouselModel.index
collectionView.reloadData()
// track analyticsData
if(!isTrackedAnalytics){
trackSwipeActionAnalyticsforIndex(pageIndex)
@ -305,9 +304,10 @@ open class Carousel: View {
cell.accessibilityElementsHidden = true
}
}
func trackSwipeActionAnalyticsforIndex(_ index : Int){
guard let itemModel = molecules?[index],
let viewControllerObject = delegateObject?.moleculeDelegate as? MVMCoreViewControllerProtocol else { return }
let viewControllerObject = delegateObject?.moleculeDelegate as? MVMCoreViewControllerProtocol else { return }
MVMCoreUILoggingHandler.shared()?.defaultLogAction(forController: viewControllerObject, actionInformation: itemModel.toJSON(), additionalData: nil)
}
}