The MPVolumeView class is volume view to presents the user with a slider control for setting the system audio output volume, and a button for choosing the audio output route.
MPVolumeView only shows up when building and running on an actual iOS device and will not work in a simulator.
Adding a MPVolumeView
!!! A very important note is that the MPVolumeView only works on an actual device and not on a simulator.
This modified text is an extract of the original Stack Overflow Documentation created by following contributors
and released under CC BY-SA 3.0