Set opacity of AVPlayerLayer
问题 I have seen quite a few posts of people wanting to play videos with transparent backgrounds. That is not what I am trying to accomplish here. I am trying to set the opacity of the whole layer. Below is how I am setting the opacity of an image layer. I have tried the same approach to set opacity for the video layer but nothing happened when I attempted to fade @IBAction func imageFadeAction(_ sender: Any) { let rounded = Int(round(imageFader.value)) imageLabel.text = "\(rounded.description)%"