Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

yonat/AvailableHapticFeedback

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published