Как запустить звук при нажатии button во viewController?
Как запустить звук при нажатии button во viewController?
let path = Bundle.main.path(forResource: “audioCall”, ofType: “.mp3”)!
let url = URL(fileURLWithPath: path)
do {
bombSoundEffect = try AVAudioPlayer(contentsOf: url)
bombSoundEffect?.play()
} catch {
}