I have a radio streaming app that navigates through different view controllers, the problem is that every time I leave the view that has the audio player and return to it, the play button if you press it again activates the audio playback, causing an echo and also the first playback I can not stop. I'm working with storyboards is my first time in swift and SB before I did with object-c and it did not cause problems, I translated what I have in object c to swift and it does not work, I found this code here but it is not useful either. Thanks for any help.
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
let ViewControllerDos = storyBoard.instantiateViewController(withIdentifier: "RadiosPVSViewController")
self.present(ViewControllerDos, animated: true, completion: nil)