Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rorodriguez116/Camera-SwiftUI
A lightweight camera library for quick integration with SwiftUI - iOS/iPadOS only
https://github.com/rorodriguez116/Camera-SwiftUI
Last synced: about 2 months ago
JSON representation
A lightweight camera library for quick integration with SwiftUI - iOS/iPadOS only
- Host: GitHub
- URL: https://github.com/rorodriguez116/Camera-SwiftUI
- Owner: rorodriguez116
- Created: 2020-09-19T18:30:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-28T09:12:00.000Z (about 1 year ago)
- Last Synced: 2024-03-14T22:37:30.752Z (10 months ago)
- Language: Swift
- Size: 21.5 KB
- Stars: 193
- Watchers: 6
- Forks: 48
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-swiftui-libraries - Camera-SwiftUI - A lightweight camera library for quick integration with SwiftUI - iOS/iPadOS only (Camera / Content)
README
# 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](https://cdn-images-1.medium.com/max/2600/1*dQ6PJ2f9GfIO3iuKDNZxqA.png)
This is the package developed and used in the [Effortless SwiftUI-- Camera](https://rorodriguez116.medium.com/effortless-swiftui-camera-d7a74abde37e) 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](https://github.com/rorodriguez116/SwiftCamera). If you'd like to read the article for this project click [here](https://rorodriguez116.medium.com/effortless-swiftui-camera-d7a74abde37e)# 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