Swiftpack.co - lalkrishna/LKFeedbackGenerator as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by lalkrishna.
lalkrishna/LKFeedbackGenerator 1.0.0
Will let you to handle iOS device feedback mechanism easily by automatically invoke Hapics or Taptic signals based on single call.
⭐️ 1
🕓 3 years ago
iOS
.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: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

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