Camera and editor improvements

This commit is contained in:
Ilya Laktyushin
2023-06-14 16:42:55 +04:00
parent e3222ca460
commit b6420c4405
19 changed files with 997 additions and 247 deletions

View File

@@ -29,7 +29,7 @@ final class CameraDevice {
public private(set) var audioDevice: AVCaptureDevice? = nil
func configure(for session: AVCaptureSession, position: Camera.Position) {
func configure(for session: CameraSession, position: Camera.Position) {
self.position = position
if let videoDevice = AVCaptureDevice.DiscoverySession(deviceTypes: [.builtInDualCamera, .builtInWideAngleCamera, .builtInTelephotoCamera], mediaType: .video, position: position).devices.first {
self.videoDevice = videoDevice