File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ import UIKit
3131
3232 delegate = self
3333 dataSource = self
34- goto ( startPage)
34+ goTo ( startPage)
3535 }
3636}
3737
3838// MARK: Public methods
3939extension PagesController {
4040
41- public func goto( index: Int ) {
4241 if index > - 1 && index < pages . count {
42+ public func goTo( index: Int) {
4343 let direction : UIPageViewControllerNavigationDirection = ( index > currentIndex) ? . Forward : . Reverse
4444 let viewController = pages [ index]
4545 currentIndex = index
@@ -53,11 +53,11 @@ extension PagesController {
5353 }
5454
5555 public func next( ) {
56- goto ( currentIndex + 1 )
56+ goTo ( currentIndex + 1 )
5757 }
5858
5959 public func previous( ) {
60- goto ( currentIndex - 1 )
60+ goTo ( currentIndex - 1 )
6161 }
6262
6363 public func add( viewControllers: [ UIViewController ] ) {
You can’t perform that action at this time.
0 commit comments