nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
11.99k stars 2.58k forks source link

Get current Index #858

Open anudeep94 opened 6 years ago

anudeep94 commented 6 years ago

How to get the current index of the view displayed?, i need to change value of a label outside carousel according to the index of the carousel.

DanielOuwendijk commented 5 years ago

func carouselCurrentItemIndexDidChange(_ carousel: iCarousel) { let myString = myArray[myCarouselView.currentItemIndex] myUILabel.text = myString }