CollectionKit
CollectionKit copied to clipboard
[Help] Touch gesture help
I am currently using this library with this cardView
So I have gotten the collectionKit to work fine and I have also gotten the other library to work fine when its separated on its own but not when its being used with CollectionKit.
let sizeSource = { (index: Int, data: Int, collectionSize: CGSize) -> CGSize in
return CGSize(width: self.cellWidth, height: self.cellHeight)
}
let viewSource = ClosureViewSource(viewUpdater: { (view: CardHighlight, data: Int, index: Int) in
view.backgroundColor = UIColor(red: 0, green: 94/255, blue: 112/255, alpha: 1)
view.icon = UIImage(named: "Kush")
view.title = "Welcome \nto \nCards !"
view.itemTitle = "Flappy Bird \(index)"
view.itemSubtitle = "Flap That \(data)!"
view.textColor = UIColor.white
view.hasParallax = true
view.delegate = view.self
view.shouldPresent(cardContentVC, from: self, fullscreen: false)
self.view.addSubview(view)
})
let provider = BasicProvider(
dataSource: dataSource,
viewSource: viewSource,
sizeSource: sizeSource
)
let inset = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
provider.layout = FlowLayout(spacing: 10, justifyContent: .spaceEvenly).inset(by: inset)
provider.animator = FadeAnimator()
//lastly assign this provider to the collectionView to display the content
//self.collectionView.removeGestureRecognizer(self.collectionView.tapGestureRecognizer)
self.testCollectionView.provider = provider
}
I guess what I am asking is: What else could be interfering with the touch gesture on when I am invoking a card?
I also have tried removing the collectionView gesture thinking that was it but it wasn't (hence it is now commented out).
Any help is much appreciated.