making pageIndex public
This commit is contained in:
parent
fdd6a05528
commit
bd4450a7fc
@ -16,7 +16,7 @@ open class Carousel: View {
|
|||||||
var currentIndex = 0
|
var currentIndex = 0
|
||||||
|
|
||||||
/// The index of the page, does not include dummy cells.
|
/// The index of the page, does not include dummy cells.
|
||||||
var pageIndex: Int {
|
public var pageIndex: Int {
|
||||||
get {
|
get {
|
||||||
return loop ? currentIndex - 2 : currentIndex
|
return loop ? currentIndex - 2 : currentIndex
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user