making pageIndex public

This commit is contained in:
Khan, Arshad 2020-03-11 22:42:08 +05:30
parent fdd6a05528
commit bd4450a7fc

View File

@ -16,7 +16,7 @@ open class Carousel: View {
var currentIndex = 0
/// The index of the page, does not include dummy cells.
var pageIndex: Int {
public var pageIndex: Int {
get {
return loop ? currentIndex - 2 : currentIndex
}