Skip to content

A quick and easy way to use haptic feedback in your UIKit or SwiftUI iOS apps.

Notifications You must be signed in to change notification settings

benlmyers/quick-haptic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickHaptic

Quickly create haptic feedback using this module.

Installation

Use Swift Package Manager to install this package:

https://github.com/benlmyers/quick-haptic

Usage

In your View or ViewController, first import QuickHaptic:

import QuickHaptic

Play a single light haptic:

Haptic.play(.light)

Play two soft haptics rapidly in succession:

Haptic.double(.soft)

Play a heavy haptic, then a medium haptic:

Haptic.double(.heavy, .medium)

Haptic Styles

QuickHaptic supports every type of FeedbackStyle offered.

Available Styles:

  • heavy
  • light
  • medium
  • rigid
  • soft

About

A quick and easy way to use haptic feedback in your UIKit or SwiftUI iOS apps.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages