0

I would like to hide the volume control overlay in my iOS app. Even when the volume buttons are Pressed.

Does anyone know how this works? Best regards

jnpdx
  • 45,847
  • 6
  • 64
  • 94
  • 3
    You might want to specify whether you're talking about iOS or macOS – jnpdx Oct 28 '21 at 16:46
  • 4
    I’m sorry, but I don’t see how my suggestion was aggressive. – jnpdx Oct 28 '21 at 17:12
  • 4
    I did not “dislike” your question. I was not the one that downvoted it. On SO, votes are anonymous — usually not good to assume that you know it was a specific person. In fact, I’ve upvoted now to balance out and will add iOS to the tags for you since I believe that the platform was the only relevant information you were missing. I was just trying to help clarify. No, I don’t know specifically how to solve the issue. – jnpdx Oct 28 '21 at 17:17

1 Answers1

0

I think this answer is similar to what you are asking for. I have converted it to Swift:

let volumeView = MPVolumeView(frame: CGRect(x: 0, y: 0, width: 0, height: 0))
self.view.addSubview(volumeView)
Hunter
  • 414
  • 5
  • 15