forked from shadowfacts/Tusker
Add haptic feedback to header view tab switcher to match home/notifications
This commit is contained in:
parent
1ec85ca095
commit
2df703ab71
|
@ -253,6 +253,7 @@ class ProfileHeaderView: UIView {
|
||||||
|
|
||||||
@IBAction func postsSegmentedControlChanged(_ sender: UISegmentedControl) {
|
@IBAction func postsSegmentedControlChanged(_ sender: UISegmentedControl) {
|
||||||
delegate?.profileHeader(self, selectedPostsIndexChangedTo: sender.selectedSegmentIndex)
|
delegate?.profileHeader(self, selectedPostsIndexChangedTo: sender.selectedSegmentIndex)
|
||||||
|
UIImpactFeedbackGenerator(style: .light).impactOccurred()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue