Create FUNDING.yml
Unified haptic feedback interface for all subclasses of UIFeedbackGenerator, with availability checks for iOS 9.
UIFeedbackGenerator
var haptic = AvailableHapticFeedback(style: .selection) haptic.prepare() // load taptic engine (optional) haptic.generateFeedback() // call to generate haptic feedback haptic.end() // unload taptic engine (optional)
To learn about the different haptic feedback styles, see Apple’s guidelines for feedback or run the Example app.
pod 'AvailableHapticFeedback'
dependencies: [ .package(url: "https://github.com/yonat/AvailableHapticFeedback", from: "1.0.2") ]
@yonatsharon
https://github.com/yonat/AvailableHapticFeedback
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
AvailableHapticFeedback
Unified haptic feedback interface for all subclasses of
UIFeedbackGenerator, with availability checks for iOS 9.Usage
To learn about the different haptic feedback styles, see Apple’s guidelines for feedback or run the Example app.
Installation
CocoaPods:
Swift Package Manager:
Meta
@yonatsharon
https://github.com/yonat/AvailableHapticFeedback