Skip to content

Commit ef92e59

Browse files
committed
Rename goto to goTo
1 parent 19300ba commit ef92e59

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/PagesController.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
3939
extension 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]) {

0 commit comments

Comments
 (0)