ProudOfZiggy/SIFloatingCollection_Swift

How to detect while bubble index is pressed after click/press on the bubble

AnilkumarRabhasa opened this issue · 3 comments

Thanks for the great library. But, after clicking on the bubble, how to get index of that bubble, is there any delegate method? I want to track which bubble is pressed, based on that index I need to know the bubble name/index to do some exercise.

Thanks!

@AnilkumarRabhasa implement the SIFloatingCollectionSceneDelegate to use these methods:

floatingScene(_ scene: SIFloatingCollectionScene, didSelectFloatingNodeAt index: Int)
floatingScene(_ scene: SIFloatingCollectionScene, didDeselectFloatingNodeAt index: Int)

Thanks for your reply @AlbertoLourenco , but, how can I call these delegate methods to my ViewController class which is showing the layout of circle bubble?

This question is not related to framework.