nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS

Home Page:http://www.charcoaldesign.co.uk/source/cocoa#icarousel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get current Index

anudeep94 opened this issue · comments

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.

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