Audio with Swift

Audio
Add audio delegate
Pasted Graphic 1
Create audioPlayer public variable
Pasted Graphic
Create music function
Pasted Graphic 2
To prevent below error on play, be sure Music0.m4a is added to Build Phases
Pasted Graphic 4
https://stackoverflow.com/questions/41775563/bundle-main-pathforresourceoftypeindirectory-returns-nil
Pasted Graphic 3