Swiftpack.co - FluidGroup/Capturer as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by FluidGroup.
FluidGroup/Capturer 2.0.0
📸 A wrapper for AVCaptureSession - The way easier to use the Camera.
⭐️ 16
🕓 3 weeks ago
iOS
.package(url: "https://github.com/FluidGroup/Capturer.git", from: "2.0.0")

Capturer

A wrapper for AVCaptureSession - The way easier to use the Camera.

Setting up

let captureBody = CaptureBody(
  configuration: .init {
    $0.sessionPreset = .photo
  }
)
let input = CameraInput.wideAngleCamera(position: .back)

await captureBody.attach(input: input)

let previewOutput = PreviewOutput()
let photoOutput = PhotoOutput()

await captureBody.attach(output: previewOutput)
await captureBody.attach(output: photoOutput)

let previewView = PixelBufferView()
previewView.attach(output: previewOutput)

captureBody.start()

License

MIT

GitHub

link
Stars: 16
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2.0.0
3 weeks ago

What's Changed

New Contributors

Full Changelog: https://github.com/FluidGroup/Capturer/compare/1.0.0...2.0.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics