I am on a team in a college course and we're making an iPhone app. We have a shaking functionality in the app that already works. To go with this, we want to be able to have a sound playing and the faster/harder the phone is being shook, the louder the sound will play.
Question: What swift methods (if they're available) can we use to access the user's volume settings? We don't want to change their settings because that would be wrong and likely illegal (very frowned upon at the least). We want to simply see what their volume is set to and set our volume scale to that.
EXAMPLE: Our volume scale has their volume at 50% based on how fast they are shaking. If their settings have the volume at 100 (assuming a volume scale from 0 - 100), our sound would play at sound 50. If their setting were set to 60, our sound would play at 30.
We don't mind reading any articles or tutorials on this, but we haven't been able to find them, so links would be appreciated just as much.
Thanks in advance!