Tinder like pan iOS

后端 未结 5 845
刺人心
刺人心 2021-01-22 23:24

For the Tinder app in iOS, I assume they are using a pan gesture recognizer on the image view. How is it that another image is shown underneath the image the user has started to

5条回答
  •  别那么骄傲
    2021-01-22 23:57

    You might want to look at using CollectionViews to implement this. Have a look at https://github.com/petetodd/BGSSwipeChooser

    The implementation requires a custom UICollectionViewFlowLayout (example) which can be complex to design, but you get all the good datasource management stuff that comes with CollectionViews.

提交回复
热议问题