I've implemented the volumeView class onto my app so that I can pick and output my audio via airplay however the button for this is not showing.
I don't get any compiler errors and after reading Airplay Button is not showing in Player Controls with AVPlayer I can't work out what I'm doing differently.
The code:
override func viewDidLoad() {
super.viewDidLoad()
let volumeView = MPVolumeView(frame: myView.bounds);
self.view.addSubview(volumeView);
volumeView.showsRouteButton = true;
self.view.backgroundColor = UIColor.red;
volumeView.center = CGPoint(x:380, y:150)
Any advice is much appreciated.