CoreMotion how can I play music while user jumps up and down?

94 Views Asked by At

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!

0

There are 0 best solutions below