We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hellow @austinkettner
i need filling My CameraKit this UIView GrayColor
can you help me please
The text was updated successfully, but these errors were encountered:
My Code
var previewView: CKFPreviewView = CKFPreviewView() var cameraSession: CKFVideoSession = CKFVideoSession()
in viewDidload() self.previewView.session = self.CameraPhotoSession self.CameraPhotoSession.resolution = CGSize(width: self.capturePreviewView.width, height: self.capturePreviewView.height) self.capturePreviewView.addSubview(self.previewView) self.previewView.snp.makeConstraints { (make) in make.edges.equalToSuperview()
} }
Sorry, something went wrong.
I was trying to get my cameraVIew to expand horizontally but it should work the same vertically also if thats what you need.
Just add this and then you should be able to resize it to any dimensions.
previewView.previewLayer?.videoGravity = .resizeAspectFill
No branches or pull requests
Hellow @austinkettner
i need filling My CameraKit this UIView GrayColor
can you help me please
The text was updated successfully, but these errors were encountered: