Skip to content

Commit d71fa49

Browse files
committedApr 29, 2015
Merge pull request #12 from hyperoslo/feature/pages-count
Add pages count getter
2 parents cf50faa + e552d2d commit d71fa49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎Source/PagesController.swift

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ import UIKit
3030

3131
lazy var pages = Array<UIViewController>()
3232

33+
public var pagesCount: Int {
34+
return pages.count
35+
}
36+
3337
public private(set) var currentIndex = 0
3438

3539
public var pagesDelegate: PagesControllerDelegate?

0 commit comments

Comments
 (0)
Please sign in to comment.