react-native-vision-camera/ios/Parsers/AVCaptureDevice.Position+descriptor.swift
Marc Rousavy 00c8970366 Add iOS
2021-02-19 16:28:05 +01:00

26 lines
500 B
Swift

//
// AVCaptureDevice.Position+String.swift
// Cuvent
//
// Created by Marc Rousavy on 15.12.20.
// Copyright © 2020 Facebook. All rights reserved.
//
import AVFoundation
import Foundation
extension AVCaptureDevice.Position {
var descriptor: String {
switch self {
case .back:
return "back"
case .front:
return "front"
case .unspecified:
return "unspecified"
@unknown default:
fatalError("AVCaptureDevice.Position has unknown state.")
}
}
}