Triggers impact feedback.
- iOS 10.0+
This method tells the generator that an impact has occurred. In response, the generator may play the appropriate haptics based on the
UIImpact value passed to the generator’s
For information on setting up a feedback generator, see Using Feedback Generators.