Preview not matching superview frame?
nmcdonaldd opened this issue · comments
Nicholas McDonald commented
Hey Brian! Curious as to why setting the layers frame doesn't make it match the full screen parent view bounds? Trying to get a full screen camera preview. Any help would be great!!
Nicholas McDonald commented
Actually, fixed it by adding self.cameraPreviewLayer.videoGravity = AVLayerVideoGravityResizeAspectFill
.