react-native-vision-camera/package/ios/CameraView+TakePhoto.swift

16 lines
322 B
Swift
Raw Normal View History

2021-02-19 08:28:05 -07:00
//
// CameraView+TakePhoto.swift
// mrousavy
2021-02-19 08:28:05 -07:00
//
// Created by Marc Rousavy on 16.12.20.
// Copyright © 2020 mrousavy. All rights reserved.
2021-02-19 08:28:05 -07:00
//
import AVFoundation
extension CameraView {
func takePhoto(options: NSDictionary, promise: Promise) {
cameraSession.takePhoto(options: options, promise: promise)
2021-02-19 08:28:05 -07:00
}
}