Holo 0.1.1

Holo 0.1.1

noppefoxwolf 维护。



Holo 0.1.1

Holo [beta]

CI Status Version License Platform

用法

使用简单。

将这些行添加到您的项目代码中。

这些适用于模拟器执行时替代实现的场景。

#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

您可以选择模拟相机的内内容。

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

要求

安装

Holo 通过 CocoaPods 提供。要安装它,只需将其以下行添加到您的 Podfile 中

pod 'Holo'

作者

noppefoxwolf, [email protected]

霍洛遵守MIT许可证。有关更多信息,请参阅LICENSE文件。

Holo可在MIT许可证下使用。更多信息请参阅许可证

鸣谢