Created
July 3, 2021 22:38
-
-
Save froggomad/bcb98076935f23d33a5a79c0d6da5ac4 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) | |
} | |
/// `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