Skip to content

Instantly share code, notes, and snippets.

@froggomad
Created July 3, 2021 22:38
Show Gist options
  • Save froggomad/bcb98076935f23d33a5a79c0d6da5ac4 to your computer and use it in GitHub Desktop.
Save froggomad/bcb98076935f23d33a5a79c0d6da5ac4 to your computer and use it in GitHub Desktop.
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)
}
/// `Cancelled` feedback (three sequential weak booms)
static func cancelled() {
AudioServicesPlaySystemSound(1521)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment