diff --git a/Sources/iOS/Extras/PageboyTouchBar.swift b/Sources/iOS/Extras/PageboyTouchBar.swift index 2695807..1f63e3d 100644 --- a/Sources/iOS/Extras/PageboyTouchBar.swift +++ b/Sources/iOS/Extras/PageboyTouchBar.swift @@ -43,7 +43,7 @@ extension PageViewController: NSTouchBarDelegate { touchBarItem = NSButtonTouchBarItem(identifier: identifier, image: image, target: self, - action: #selector(PageViewController.previousPage(_:))) + action: #selector(PageViewController.scrollToPreviousPage(_:))) case .nextPage: guard let image = UIImage(systemName: "chevron.right") else { @@ -52,7 +52,7 @@ extension PageViewController: NSTouchBarDelegate { touchBarItem = NSButtonTouchBarItem(identifier: identifier, image: image, target: self, - action: #selector(PageViewController.nextPage(_:))) + action: #selector(PageViewController.scrollToNextPage(_:))) default: touchBarItem = nil