Skip to content

Commit

Permalink
Merge pull request #12 from hyperoslo/feature/pages-count
Browse files Browse the repository at this point in the history
Add pages count getter
  • Loading branch information
zenangst committed Apr 29, 2015
2 parents cf50faa + e552d2d commit d71fa49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/PagesController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ import UIKit

lazy var pages = Array<UIViewController>()

public var pagesCount: Int {
return pages.count
}

public private(set) var currentIndex = 0

public var pagesDelegate: PagesControllerDelegate?
Expand Down

0 comments on commit d71fa49

Please sign in to comment.