forked from shadowfacts/Tusker
Add haptic feedback to switching segmented pages
This commit is contained in:
parent
65ceb83d2d
commit
911e73c78f
|
@ -52,6 +52,7 @@ class SegmentedPageViewController: UIPageViewController, UIPageViewControllerDel
|
||||||
|
|
||||||
@objc func segmentedControlChanged() {
|
@objc func segmentedControlChanged() {
|
||||||
selectPage(at: segmentedControl.selectedSegmentIndex, animated: true)
|
selectPage(at: segmentedControl.selectedSegmentIndex, animated: true)
|
||||||
|
UIImpactFeedbackGenerator(style: .light).impactOccurred()
|
||||||
}
|
}
|
||||||
|
|
||||||
// MARK: - Page View Controller Delegate
|
// MARK: - Page View Controller Delegate
|
||||||
|
|
Loading…
Reference in New Issue