Latest 1.0.0
Homepage https://github.com/yonat/AvailableHapticFeedback
License MIT
Platforms ios 9.0, requires ARC
Authors

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'

Manually:

Copy Sources/AvailableHapticFeedback.swift to your Xcode project.

Meta

@yonatsharon

https://github.com/yonat/AvailableHapticFeedback

Latest podspec

{
    "name": "AvailableHapticFeedback",
    "version": "1.0.0",
    "summary": "Wrapper for UIFeedbackGenerator that compiles on iOS 9.",
    "homepage": "https://github.com/yonat/AvailableHapticFeedback",
    "license": {
        "type": "MIT",
        "file": "LICENSE.txt"
    },
    "authors": {
        "Yonat Sharon": "[email protected]"
    },
    "social_media_url": "http://twitter.com/yonatsharon",
    "swift_version": "4.2",
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source": {
        "git": "https://github.com/yonat/AvailableHapticFeedback.git",
        "tag": "1.0.0"
    },
    "source_files": "Sources/*.swift"
}

Pin It on Pinterest

Share This