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 3.0.0
📸 A wrapper for AVCaptureSession - The way easier to use the Camera.
⭐️ 16
🕓 24 weeks ago
iOS
.package(url: "https://github.com/FluidGroup/Capturer.git", from: "3.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: 21 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

3.0.0
24 weeks ago

What's Changed

New Contributors

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

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