Fix SegmentedPageViewController next sub-page shortcut not working

This commit is contained in:
Shadowfacts 2023-01-20 11:38:31 -05:00
parent cca2a03b2f
commit 9a2c24942a
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class SegmentedPageViewController<Page: SegmentedPageViewControllerPage>: UIView
// MARK: TabbedPageViewController
func selectNextPage() {
guard currentIndex < pageControllers.count - 1 else { return }
guard currentIndex < pages.count - 1 else { return }
selectPage(pages[currentIndex + 1], animated: true)
}