Swiftpack.co - yonat/AvailableHapticFeedback as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
yonat/AvailableHapticFeedback
Unified haptic feedback interface for all subclasses of UIFeedbackGenerator, with availability checks for iOS 9.
.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: 5
Last commit: 1 year ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

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