Will let you to handle iOS device feedback mechanism easily by automatically invoke Hapics/Taptic signals based on single call.
File / Swift Packages / Add Package Dependency... and enter package repository URL: https://github.com/lalkrishna/LKFeedbackGenerator
and follow the instructions.
Clone the repo and Drag and drop to your project (it will be added as a package) OR You can just copy the file: Sources/LKFeedbackGen/LKFeedbackGen.swift
1. Import LKFeedbackGen in proper place.
import LKFeedbackGen
2. Call feedback
LKFeedbackGen.signal(HapticSignal)
HapticSignal
case selection, light, medium, heavy, success, warn, error, cancelled
example:
LKFeedbackGen.signal(.selection)
This is an open source project, so feel free to contribute. How?
Lal Krishna Twitter
link |
Stars: 1 |
Last commit: 3 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics