 		volumeWindow.backgroundColor = nil
 		volumeWindow.rootViewController = volumeViewController
 		volumeWindow.windowLevel = UIWindowLevelStatusBar + 1
+		
+		// Set up internal MPVolumeView
+		volumeView.clipsToBounds = true
+		volumeView.frame = CGRect.zero
 	}
 	
 	deinit {

	}
	
	// MARK: - View lifecycle
	
	/// Called when the view is loaded.
	private override func viewDidLoad() {
		super.viewDidLoad()
		
		// A non-hidden MPVolumeView is needed to prevent the system volume HUD from showing.
		let volumeView = MPVolumeView()
		volumeView.clipsToBounds = true
		volumeView.frame = CGRect.zero
		UIApplication.sharedApplication().windows.first?.addSubview(volumeView)
	}
	
	/// Performs internal layout.
	private override func viewDidLayoutSubviews() {

			
			// Stop observing volume changes
			AVAudioSession.sharedInstance().removeObserver(self, forKeyPath: "outputVolume")
			
			volumeView.removeFromSuperview()
		}
	}
	
