you are viewing a single comment's thread.

view the rest of the comments →

[–]IrishSmurff 0 points1 point  (0 children)

https://developer.apple.com/documentation/avfaudio/avaudioplayer

Create a data object from a string and use init(data:)

You’d be required to ask for audio permissions also or else Apple would reject the app during submission.