I use avplayer to play videos and want to set rounded corners for the video layer. I set the maskToBounds and cornerRadius of avplayerlayer. The layer is added to the imageView through the addSubLayer method. In addition, imageView displays album images and can complete rounded corners. Please tell me how to set it up? Thank you in advance
Instead of adding a sublayer, why not just set imageView.layer.cornerRadius?!