How luksmoreira/freephoto works
FreePhoto is a native iOS camera app. The user selects a physical lens and capture format, optionally applies manual camera controls, takes a photo, and receives a local original plus a JSON report; the app also attempts to add the image to Photos and offers sharing. The excerpts show the SwiftUI entry point, UI-to-engine use, and parts of capture and saving. Other engine responsibilities are included where the README documents them; their internal call relationships were not fully sampled.
Main entry points: CameraEngine.swift Camera engine · CameraView.swift Camera screen · FreePhotoApp.swift App entry
Components 16
App interface
- App entry
FreePhoto/FreePhotoApp.swift - Camera screen
FreePhoto/CameraView.swift - Manual controls UI
FreePhoto/CameraView.swift - Camera preview
FreePhoto/CameraView.swift
Camera and capture
- Camera engine
FreePhoto/CameraEngine.swift - Lens discovery
FreePhoto/CameraEngine.swift - Camera session
FreePhoto/CameraEngine.swift - Format and controls
FreePhoto/CameraEngine.swift - Photo capture
FreePhoto/CameraEngine.swift - Format encoding
FreePhoto/CameraEngine.swift
Photo outputs
- Local originals
FreePhoto/CameraEngine.swift - Capture report
FreePhoto/CameraEngine.swift - Photos library
- Original sharing
FreePhoto/CameraView.swift
Other components
- Photographer
- iOS camera
Connections 19
- App entry → Camera screen: opens
FreePhoto/FreePhotoApp.swift - Photographer → Camera screen: operates
README.md - Camera screen → Camera engine: starts and controls
FreePhoto/CameraView.swift - Camera screen → Manual controls UI: opens controls
FreePhoto/CameraView.swift - Camera screen → Camera preview: displays preview
FreePhoto/CameraView.swift - Camera screen → Camera engine: selects lens and mode
FreePhoto/CameraView.swift - Manual controls UI → Camera engine: applies settings
FreePhoto/CameraView.swift - Camera engine → Lens discovery: discovers cameras
README.md - Camera engine → Camera session: manages session
FreePhoto/CameraEngine.swift - Camera session → iOS camera: configures camera
FreePhoto/CameraEngine.swift - Camera engine → Format and controls: checks capabilities
FreePhoto/CameraEngine.swift - Camera engine → Photo capture: dispatches capture
FreePhoto/CameraEngine.swift - Photo capture → iOS camera: requests photo
FreePhoto/CameraEngine.swift - Photo capture → Format encoding: processes selected format
README.md - Camera engine → Local originals: writes original
FreePhoto/CameraEngine.swift - Camera engine → Capture report: writes dimensions and metadata
README.md - Camera engine → Photos library: imports saved image
FreePhoto/CameraEngine.swift - Camera screen → Original sharing: offers original sharing
README.md - Original sharing → Local originals: shares saved original
README.md