Taptic Engine Feedback

One line to generate feedback through Taptic Engine with three diverse feedback :0

Feature

  • Category, no side effects.

Requirements

Any Devices with Taptic Engine.

Usage

Import the .h file in which you want to generate feedback.

#import "UIImpactFeedbackGenerator+Feedback.h"

Call the class method to make effect.

[UIImpactFeedbackGenerator generateFeedbackWithLightStyle];

We have provided with three class methods, choose whichever you want.

+ (void)generateFeedbackWithLightStyle;
+ (void)generateFeedbackWithMediumStyle;
+ (void)generateFeedbackWithHeavyStyle;

License

TapticEngineFeedback is released under the MIT license. See LICENSE for details.

Github: links

标签: iOS

评论已关闭