kevin-lyn / STPopupPreview

An alternative peek preview for non 3D Touch devices. Inspired by Instagram.
MIT License
202 stars 30 forks source link

Expose long press gesture location #4

Open guillermolechuga opened 8 years ago

guillermolechuga commented 8 years ago

I've implemented 3d touch with a helper that receives the UICollectionView. From there I retrieve the pressed cell with the location from previewingContext:viewControllerForLocation:.

I'd like to add this popupPreviewRecognizer to the UICollectionView as well, but I need the gesture location for determining which cell was pressed.