making pageIndex public
This commit is contained in:
parent
fdd6a05528
commit
bd4450a7fc
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user