Skip to content

Instantly share code, notes, and snippets.

@mackhowell
Created December 7, 2017 00:04
Show Gist options
  • Save mackhowell/3dac06c0a4d9149ff5d73bf4e8534da8 to your computer and use it in GitHub Desktop.
Save mackhowell/3dac06c0a4d9149ff5d73bf4e8534da8 to your computer and use it in GitHub Desktop.
home button "pop" forever
import AudioToolbox
func vibrateForever() {
let k_PeakSoundID: UInt32 = 1519
while true {
AudioServicesPlaySystemSound(k_PeakSoundID)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment