How can I play a haptic feedback while AvCapture Session is running?
问题 When my Avcapture session is running and ready to record a video , I cannot play and audio files, vibrate or play any haptic feedback? I only found a solution for objective c but not swift. Objective C Solution : Using vibrate and AVCaptureSession at the same time 回答1: As long as you are using microphone in the AVCaptureSession , the haptic feedback will not play. Apple tries to prevent the vibration from disrupting the microphone capture. This is noted in https://developer.apple.com