Open bstillitano opened 5 years ago
What's .snp
?
I use it with SwiftUI, it's size not as the frame I set.
What's
.snp
?
SnapKit. Apologies for using a third party library in an issue. Have verified that even using CGRect as the frame the issue persists.
Any updates on this?
Any updates on this?
They’ve abandoned this library.
I had the same issue of the camera view not filling the entire screen, but I solved it by setting the CKFPreviewView.video.previewLayer.videoGravity = .resizeAspectFill
in viewDidLayoutSubviews
Hope that helps anyone reading this!
Is this a bug report?
Yes.
Have you read the Contributing Guidelines?
Yes.
Environment
CameraKit Version: 1.2.0
iOS Device: iPhone X
iOS Version: 12.1.3
Steps to Reproduce
Expected Behavior
Based on popular apps and most other libraries, the expectation from myself (which may not be correct) is that the preview would fill its parent view instead of fit. At a mininmum I'd expect the ability to actually set this behaviour by choice.
Actual Behavior
There is no ability to specify fill/fit mode. This is the code and the outcome.