brianadvent / CustomCamera

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview not matching superview frame?

nmcdonaldd opened this issue · comments

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!!

Actually, fixed it by adding self.cameraPreviewLayer.videoGravity = AVLayerVideoGravityResizeAspectFill.