5

Imagine a UICollectionView,

enter image description here

(two items shown)

I'm using the popular BPXLFlowLayout for UIKit Dynamics (note my comment, How to replicate Messages bouncing bubbles in iOS 7 )

I want the N items to "drop in" from the top offscreen and bounce upon arrival. But,

I want the drop in and bounce to use the same Dynamic, as the collection view is using

Acceptable but not ideal workaround: simply drop in the whole view with usingSpringWithDamping:

eg, https://stackoverflow.com/a/23926712/294884

But it seems "wrong" to not use the same Dynamics the collection view is using, when you move the items around by finger.

(Obviously, with usingSpringWithDamping, there is no "internal springs": the whole collection view simply bounces in as a unit.)

I've put a few hours in to this: you'd think it would be as simple as positioning the list up top, offscreen, and then using scrollToItemAtIndexPath: But no, I couldn't make that work at all.

user229044
  • 222,134
  • 40
  • 319
  • 330
Fattie
  • 35,446
  • 61
  • 386
  • 672

0 Answers0