Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sentryco/hapticfeedback
Enhance your haptic brand
https://github.com/sentryco/hapticfeedback
Last synced: 1 day ago
JSON representation
Enhance your haptic brand
- Host: GitHub
- URL: https://github.com/sentryco/hapticfeedback
- Owner: sentryco
- License: mit
- Created: 2024-10-04T11:55:23.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-06T11:52:02.000Z (11 days ago)
- Last Synced: 2024-11-06T12:40:04.952Z (11 days ago)
- Language: Swift
- Size: 13.7 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Tests](https://github.com/sentryco/HapticFeedback/actions/workflows/Tests.yml/badge.svg)](https://github.com/sentryco/HapticFeedback/actions/workflows/Tests.yml)
[![codebeat badge](https://codebeat.co/badges/ea085160-e70b-4f56-a538-c58224b56a74)](https://codebeat.co/projects/github-com-sentryco-hapticfeedback-main)# HapticFeedback
HapticFeedback is a Swift library designed to simplify the integration of haptic feedback in iOS applications. It provides a convenient abstraction over the iOS `UIImpactFeedbackGenerator`, making it easier to trigger haptic feedback in response to various user interactions.
## Features
- **Easy Integration**: Simplify the usage of haptic feedback with straightforward API calls.
- **Platform Specific**: Utilizes iOS's native haptic capabilities to provide feedback.
- **Customizable**: Supports different haptic styles and types, tailored to specific user actions.## Usage
```swift
import HapticFeedback// Trigger entry haptic feedback
Haptic.trigger(.entry)// Trigger exit haptic feedback
Haptic.trigger(.exit)// Trigger success haptic feedback
Haptic.trigger(.success)// Trigger deny haptic feedback
Haptic.trigger(.deny)// Trigger failure haptic feedback
Haptic.trigger(.failure)// Trigger extracted haptic feedback
Haptic.trigger(.extracted)```
## Swift Package Manager
```swift
.package(url: "https://github.com/sentryco/HapticFeedback", branch: "main")
```## License
HapticFeedback is available under the MIT license. See the LICENSE file for more info.