LXReorderableCollectionViewFlowLayout icon indicating copy to clipboard operation
LXReorderableCollectionViewFlowLayout copied to clipboard

Gesture configuration

Open mackworth opened this issue 10 years ago • 0 comments

Documentation suggestion: I wanted to change the minimumDuration of the longPress gesture after I created the layout, but I couldn't get it below 0.5 seconds. As the recognizer worked fine otherwise, I assumed other recognizers or buttons were interfering and delaying the recognition. It took me a couple of hours of debugging and searching through issues here before realizing that the recognizers aren't created until the layout is attached to a collectionView. (Thus before then, layout.longPressGestureRecognizer is nil, so assigning to its property is a no-op). Moved the setting down two lines and it works great.

Nothing wrong with that design, just wish this note had existed.

Thanks for a great framework!

mackworth avatar Mar 07 '15 17:03 mackworth