override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
// initialize cell
if let pickerCell = cell as? SettingsPickerCell {
collectionView.panGestureRecognizer.requireGestureRecognizerToFail(pickerCell.picker.collectionViewController.collectionView!.panGestureRecognizer)
}
return cell
}
The code above works, albeit is as ugly as hell. I have a scrollView buried deep in a view hierarchy, and I need a better way to disable the collection view scrolling when the picker is scrolling.
I tried using the exclusiveTouch
property, didn't help. Is there a better way than this?