I was trying to implement vibration functionality on the click of UIButton with following line of code:
import AudioToolbox
AudioServicesPlayAlertSound(SystemSoundID(kSystemSoundID_Vibrate))
But nothing happens. if someone has an experience regarding this, please check the issue.
You're probably better off using haptic feedback if the device supports it (eg iPhone).