I would like to use some haptic in my app. I am using the UISelectionFeedbackGenerator
but it will not work. I am testing on real iPhone 7 with iOS 10. These two lines should do the magic – but nothing happens:
let generator = UISelectionFeedbackGenerator()
generator.selectionChanged()