JoniVR / VerticalCardSwiper

A marriage between the Shazam Discover UI and Tinder, built with UICollectionView in Swift.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Value of type 'VerticalCardSwiper' has no member 'focussedIndex'

bugaco opened this issue · comments

New Issue Checklist

Issue Description

The document shows that:

Get the current focussed card index
cardSwiper.focussedIndex

But when I use cardSwiper.focussedIndex, Xcode shows an error:

Value of type 'VerticalCardSwiper' has no member 'focussedIndex'

Is there something wrong with me ?

Environment

  • iOS Version: 12.1
  • Xcode Version: 10.14.3
  • VerticalCardSwiper Version: 0.1.0-beta7

Correct, I haven't released a new version that includes this, my bad.
I'll release a new version later today which will include this feature. 🙂

Hi @zanyzephyr

Just wanted to let you know I just released version 0.1.0 which should fix this issue for you 🎉
If you're using Cocoapods, make sure to change the line in your podfile to:

pod 'VerticalCardSwiper'

Let me know if it works now 😄

Hi @JoniVR
Yeah, I'm using Cocoapods, and I upgraded the version to 0.1.0.
Then, the focussedIndex property works well😃.