GabrielAlva / SwiftPages

A swift implementation of a swipe between pages layout, just like Instagram's toggle between views.
Other
647 stars 91 forks source link

get current index #28

Open ahmedsafadii opened 8 years ago

ahmedsafadii commented 8 years ago

how i can get the current index of the page ?

GabrielAlva commented 8 years ago

currentPage = Int(scrollView.contentOffset.x / scrollView.bounds.size.width)