ZacharyKhan / ZKCarousel

A simple carousel implementation written in Swift
MIT License
289 stars 57 forks source link

How can get selected index ? #5

Closed afiq90 closed 6 years ago

afiq90 commented 6 years ago

Hey guys, how can I get selected index for ZKCarousel? Thanks in advance.

ZacharyKhan commented 6 years ago

I can add a function to return the selected index. Give me 30 minutes 👍

afiq90 commented 6 years ago

Okay, thanks

ZacharyKhan commented 6 years ago

run pod update and make sure you're on version 0.1.4 or newer, I've added the following function to return the selectedIndexPath:

carousel.selectedIndexPath()

Added in #6

afiq90 commented 6 years ago

Thank you

Spettacolo83 commented 5 years ago

Is it possible to receive a callback when the scroll has been executed (manual and automatic)? Thanks!

magichim commented 4 years ago

@ZacharyKhan I want same feature that @Spettacolo83 comment.

When I slide it, get a index or other logic is executed.

Could you make it?

ZacharyKhan commented 4 years ago

@ZacharyKhan I want same feature that @Spettacolo83 comment.

When I slide it, get a index or other logic is executed.

Could you make it?

@magichim I will take a look this evening and see if I can implement this for you.

Please open a new issue so I can reference the ticket