Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 664 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 664 Bytes

HapticFeedbackGenerator 😊📱

🚀 Status: Plug and play

Simple FeedbackGenerator library which makes it easy to apply Haptic Feedback on certain actions in your app.

Instalation:

Just import FeedbackGenerator file into your project.

Usage:

FeedbackGenerator.generateFeedback(of: .success)

Notes:

iOS 10 or higher is required for some vibration options.

iOS 10 required options:
  • electionChange 🔄
  • lightImpact 💡
  • mediumImpact ⚡️
  • heavyImpact 💥
  • success ✅
  • error ❌
  • warning ⚠️
Standard vibration options:
  • peek 👀
  • pop 🔵
  • cancelled 🚫
  • tryAgain 🔁
  • failed ❌💔