Swiftpack.co - lalkrishna/LKFeedbackGenerator as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
lalkrishna/LKFeedbackGenerator
Will let you to handle iOS device feedback mechanism easily by automatically invoke Hapics or Taptic signals based on single call.
.package(url: "https://github.com/lalkrishna/LKFeedbackGenerator.git", from: "1.0.0")

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

GitHub

link
Stars: 1
Last commit: 34 weeks 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