From e552d2df6461e94475c5c61c37ee02f141f5decf Mon Sep 17 00:00:00 2001 From: Vadym Markov Date: Wed, 29 Apr 2015 17:12:27 +0200 Subject: [PATCH] Add pages count getter --- Source/PagesController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/PagesController.swift b/Source/PagesController.swift index aa195bb..fe1009c 100644 --- a/Source/PagesController.swift +++ b/Source/PagesController.swift @@ -30,6 +30,10 @@ import UIKit lazy var pages = Array() + public var pagesCount: Int { + return pages.count + } + public private(set) var currentIndex = 0 public var pagesDelegate: PagesControllerDelegate?