AvailableHapticFeedback

master

Unified haptic feedback interface for all subclasses of UIFeedbackGenerator, with availability checks for iOS 9.
yonat/AvailableHapticFeedback

AvailableHapticFeedback

Swift Version Build Status License CocoaPods Compatible
Platform PRs Welcome

Unified haptic feedback interface for all subclasses of UIFeedbackGenerator, with availability checks for iOS 9.

Usage

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.

Installation

CocoaPods:

pod 'AvailableHapticFeedback'

Swift Package Manager:

dependencies: [
    .package(url: "https://github.com/yonat/AvailableHapticFeedback", from: "1.0.5")
]

Meta

@yonatsharon

https://github.com/yonat/AvailableHapticFeedback

Description

  • Swift Tools 5.3.0
View More Packages from this Author

Dependencies

  • None
Last updated: Tue Oct 22 2024 06:28:00 GMT-0900 (Hawaii-Aleutian Daylight Time)