PhotoCamera is a slightly simplified and reworked version of Apple's AVCam demo app from WWDC2024. It supports only taking photos, i.e. no video recording, no live photos, and as such can be useful for apps that request the user's selfie, or similar tasks.
Supports iOS and iPadOS, both 18 or higher.
The non-UI modules are separated into a framework which you can link to your project as a package.
The demo app shows how to build a camera view that uses the framework. You can copy the demo app modules to your project and customize them to your needs.
The demo view (CameraView
) supports several shapes for the viewfinder: round, square, 3x4, and 9x16:
Landscape mode is also supported: the view adjusts itself by fitting the buttons on the right and extending the viewfinder to fill the full height of the screen:
The resuling image can be cropped and resizied using the utility methods in UIImageCameraEx.swift
.
Importing from the photo library is also supported.
Hovik Melikyan, https://github.com/crontab