UIView Border Disappears

I am trying to add a border around a AVCaptureVideoPreviewLayer, but the left and right sides of the border get clipped after setting the corner radius to anything above 24. The top and bottom border show.

I cannot figure out an explanation for this.

did you ever get an answer for this?

To be honest I think I gave up on this feature, I could not figure it out.

UIView Border Disappears
 
 
Q