/LKFeedbackGenerator

Will let you to handle iOS device feedback mechanism easily by automatically invoke Hapics or Taptic signals based on single call.

Primary LanguageSwift

LKFeedbackGen

Will let you to handle iOS device feedback mechanism easily by automatically invoke Hapics/Taptic signals based on single call.

Installation

Swift Package Manager

File / Swift Packages / Add Package Dependency... and enter package repository URL: https://github.com/lalkrishna/LKFeedbackGenerator and follow the instructions.

Manually

Clone the repo and Drag and drop to your project (it will be added as a package) OR You can just copy the file: Sources/LKFeedbackGen/LKFeedbackGen.swift

Usage

1. Import LKFeedbackGen in proper place.

import LKFeedbackGen

2. Call feedback

LKFeedbackGen.signal(HapticSignal)

HapticSignal

case selection, light, medium, heavy, success, warn, error, cancelled

example:

LKFeedbackGen.signal(.selection)

Features

  • Easy to use
  • Simple Swift syntax
  • Lightweight readable codebase

❤️ Contributing

This is an open source project, so feel free to contribute. How?

  • Open an issue.
  • Send feedback via email.
  • Propose your own fixes, suggestions and open a pull request with the changes.

Author

Lal Krishna Twitter