I'm coding an iOS app in Swift, I need to play music while the user is jumping up and down (detected via coreMotion).
Playing the audio is fine, But I do not know how to trigger/stop the music using coreMotion.
Any help would be greatly appreciated!