title: How to make iPhone vibrate using Swift?
body: <p>I need to make the iPhone vibrate, but I don't know how to do that in Swift. I know that in Objective-C, you just write:</p>
  
  <pre><code>import AudioToolbox
  AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
  </code></pre>
  
  <p>But that is not working for me.</p>