DroidsOnRoids / SwiftCarousel

Lightweight, written natively in Swift, circular UIScrollView.
http://www.thedroidsonroids.com/blog/ios/circular-scroll-view-swiftcarousel/
MIT License
144 stars 43 forks source link

Why auto selection not redirection at begining? #45

Closed karthisiva closed 7 years ago

karthisiva commented 7 years ago

Hi,

self.carousal.defaultSelectedIndex = 4 self.carousal.didSetDefaultIndex = true

I have added above code, but its not redirecting anything, it is in ViewDidAppear method . What is the issue? this is not working in example2 of your sample project? My side i am trying with Drag view and assign a class, then IBOutlet, the redirection only not working at beginning. Any help would be appreciated, Thanks in advance.

karthisiva commented 7 years ago

Ignore this question, i am able to fix it by calling below self.carousal .selectItem(9, animated: true)