This is a dirty-worked project which i worked on while i had no other thing to do. Included 'XXXTentacion - Look at me' as a PoC.
It can be baked into a fully working app for just like iTunes. It uses AVFoundation (Ofc bruh). I didn't spend time on constraints, so if you want to work on it, then feel free to make a PR. ;) It Also works in the background just like Soundcloud or iTunes. :)