Add haptic feedback to switching segmented pages

This commit is contained in:
Shadowfacts 2019-09-16 13:14:58 -04:00
parent 65ceb83d2d
commit 911e73c78f
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class SegmentedPageViewController: UIPageViewController, UIPageViewControllerDel
@objc func segmentedControlChanged() {
selectPage(at: segmentedControl.selectedSegmentIndex, animated: true)
UIImpactFeedbackGenerator(style: .light).impactOccurred()
}
// MARK: - Page View Controller Delegate