Question: How to add images to JQuery autocomplete which also fills hidden data inputs?

Answer: 
I would suggest checking out [Sameer's answer to this for Swift 2.0, just a few months back.](https://stackoverflow.com/a/33228074/4851799) Works perfectly with Swift 2.0.

```
let sess = AVAudioSession.sharedInstance()
if sess.otherAudioPlaying {
    _ = try? sess.setCategory(AVAudioSessionCategoryAmbient, withOptions: []) //
    _ = try? sess.setActive(true, withOptions: [])
}

```
Defer `AVAudioSession.sharedInstance().setActive(true, error: nil)` till when you need to start playing audio. Starting the session immediately after the app launches stops playback on other apps.

More details:
<https://developer.apple.com/documentation/avfoundation/avaudiosession>