blob: a2d5d39547d64728088162a4c8e8c134aebb2492 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//
// CameraManager.swift
// Hæ-appen
//
// Created by Ivar Løvlie on 20/10/2025.
//
import Foundation
import AVFoundation
class CameraManager: NSObject {
// 1.
private let captureSession = AVCaptureSession()
// 2.
private var deviceInput: AVCaptureDeviceInput?
// 3.
private var videoOutput: AVCaptureVideoDataOutput?
// 4.
private let systemPreferredCamera = AVCaptureDevice.default(for: .auxiliaryPicture)
// 5.
private var sessionQueue = DispatchQueue(label: "video.preview.session")
}
|