hol

Holo

Dummy camera works on simurator without changes.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

52

Maintenance

Last Commit

2yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

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
public typealias AVCaptureDevice = AnyCaptureDevice
public typealias AVCaptureDeviceInput = AnyCaptureDeviceInput
public typealias AVCaptureSession = AnyCaptureSessionContainer
public typealias AVCaptureVideoDataOutput = AnyCaptureVideoDataOutput
public typealias AVCaptureConnection = AnyCaptureConnection
public typealias AVCaptureVideoDataOutputSampleBufferDelegate = AnyCaptureVideoDataOutputSampleBufferDelegate
public typealias AVCaptureOutput = AnyCaptureOutput
public typealias AVCaptureInput =  AnyCaptureInput
public typealias AVDiscoverySession = AVCaptureDevice.AnyDiscoverySession
#endif

You can decide dummy camera contents.

#if targetEnvironment(simulator)
HoloSettings.shared.mode = .video(Bundle.main.url(forResource: "video", withExtension: "mp4")!)
#endif

Screenshots

Before

After

Requirements

Installation

Holo is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'Holo', git: 'git@github.com:noppefoxwolf/Holo.git', branch: 'master'

Author

noppefoxwolf, noppelabs@gmail.com

License

Holo is available under the MIT license. See the LICENSE file for more info.

Thanks

Example files from File Example.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100