Skip to content

rorodriguez116/SwiftCamera

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Effortless SwiftUI-- Camera

alt text This is the project repo for the Effortless SwiftUI-- Camera tutorial.

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.

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 de whole project from here, if you'd like to read the article for this project click here:

Swift Package

There's a swift package related to this project so you can use all the mentioned features in your app with your custom UI! Check it out here.

License

MIT

About

The source project for the SwiftCamera tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages