Swiftpack.co - yonat/AvailableHapticFeedback as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by yonat.
yonat/AvailableHapticFeedback 1.0.2
Unified haptic feedback interface for all subclasses of UIFeedbackGenerator, with availability checks for iOS 9.
⭐️ 6
🕓 1 week ago
iOS
.package(url: "https://github.com/yonat/AvailableHapticFeedback.git", from: "1.0.2")

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.2")
]

Meta

@yonatsharon

https://github.com/yonat/AvailableHapticFeedback

GitHub

link
Stars: 6
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics