Camera and editor improvements

This commit is contained in:
Ilya Laktyushin
2023-05-27 19:39:09 +04:00
parent 2d738fbfac
commit 57eceb0aef
7 changed files with 495 additions and 196 deletions

View File

@@ -108,6 +108,10 @@ public class CameraSimplePreviewView: UIView {
}
|> distinctUntilChanged
}
public func cameraPoint(for location: CGPoint) -> CGPoint {
return self.videoPreviewLayer.captureDevicePointConverted(fromLayerPoint: location)
}
}
public class CameraPreviewView: MTKView {