Swiftpack.co - rorodriguez116/Camera-SwiftUI as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by rorodriguez116.
rorodriguez116/Camera-SwiftUI 0.5.0
A lightweight camera library for quick integration with SwiftUI - iOS/iPadOS only
⭐️ 204
🕓 1 year ago
iOS macOS
.package(url: "https://github.com/rorodriguez116/Camera-SwiftUI.git", from: "0.5.0")

Camera-SwiftUI

SwiftUI has proven to be a really awesome new framework to build and design apps in a quick and reliable way. Nonetheless, it is still in its infancy and Apple needs to add more support for other framework integrations as it did recently with the new Sign In With Apple button in SwiftUI 2.0. In this project we'll learn how to integrate AVFoundation's AVCameraSession with SwiftUI so we can create reusable, extendable modern components for apps that need to use our device's cameras.

alt text This is the package developed and used in the Effortless SwiftUI-- Camera tutorial.

Features

  • Camera feed.
  • Tap to focus.
  • Drag to zoom in/out.
  • Thumbnail preview.
  • Save capture to photo library.
  • Switch between front and back facing cameras.
  • Set flash on/off

Try it out!

You can download the whole example project from here. If you'd like to read the article for this project click here

Installation

This package is and will only be available trough Swift Package Manager. You can add this pacakage as a dependency in Xcode 12.

Use the following link when Xcode requests the package's repo url:

https://github.com/rorodriguez116/Camera-SwiftUI.git

License

MIT

GitHub

link
Stars: 204
Last commit: 16 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Core Release
1 year ago
  • The features included in this release are basic or core to support camera usage in SwiftUI.

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