Check vibration System identifier on iPhone 7 or later

51 views Asked by At

Can anybody help with check, vibration system sound works on iPhones 7 or later, i what to know vibration happened or not. I only have 6s.

import AudioToolbox

let peek = SystemSoundID(1519)
AudioServicesPlaySystemSound(peek)

I need this because feedback generator has not completion event, only with AudioToolbox i know when vibration was end

0

There are 0 answers