Holo [beta]
Usage
It's easy to use.
Add these lines to your project code.
These works for replacing the implementation at the time of simulator execution.
#if targetEnvironment(simulator)
import Holo
typealias AVCaptureDevice = AnyCaptureDevice
typealias AVCaptureDeviceInput = AnyCaptureDeviceInput
typealias AVCaptureSession = AnyCaptureSessionContainer
typealias AVCaptureVideoDataOutput = AnyCaptureVideoDataOutput
typealias AVCaptureConnection = AnyCaptureConnection
typealias AVCaptureVideoDataOutputSampleBufferDelegate = AnyCaptureVideoDataOutputSampleBufferDelegate
typealias AVCaptureOutput = AnyCaptureOutput
#endif
You can decide dummy camera contents.
#if targetEnvironment(simulator)
HoloSettings.shared.mode = .video(Bundle.main.url(forResource: "video", withExtension: "mp4")!)
#endif
Requirements
Installation
Holo is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'Holo'
Author
noppefoxwolf, [email protected]
License
Holo is available under the MIT license. See the LICENSE file for more info.
Thanks
Example Video from File Example.