I'm developing custom audio player for streaming music for my app and I need it to be present on every screen in my app at the bottom. For this I used UIContainerView
and later xib
but faced same issue in both cases:
- When performing segue to another VC progress of
AudioPlayer
- time presented in label and progress bar don't get updated, however music is playing.
Moreover, if I press play after segue was performed in that container with player audio starts to play another track together with previous playing.
At this point I have developed player and it's working fine only in one VC.
My question is how to make it work on every screen?
Structure of my app: 7 VC connected with segues and at the bottom of each screen there's container view connected to one VC with player.
Thanks in advance for your help!