Created
July 3, 2021 22:28
-
-
Save froggomad/d030dd8608f08372c73dc3a29d98eaa5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import AudioToolbox.AudioServices | |
class TapticEngine { | |
/// 'Peek' feedback (single weak boom) | |
static func peek() { | |
AudioServicesPlaySystemSound(1519) | |
} | |
/// 'Pop' feedback (single strong boom) | |
static func pop() { | |
AudioServicesPlaySystemSound(1520) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment