How deusgvrl/skema works
Skema Photo is an iOS lighting-setup planner. Users browse saved setups, create or scan a setup, review and edit its lighting diagram, and manage project details, reference images, and deleted setups. Scanning combines AR session capture with MeasureKit depth/geometry processing; setup and equipment changes persist through StorageController. The README provides no capability details, so scan and PDF functionality are represented from the source tree and index; relationships without shown evidence are omitted.
Main entry points: ScanViewModel.swift Scan Flow · StorageController.swift Setup Storage · ReviewViewModel.swift Review State · SetupsView.swift Setup Browser
Components 21
App Navigation
- App Entry
Final Challenge App/App/MyApp.swift - Setup Browser
Final Challenge App/Features/Setups/SetupsView.swift
AR Scanning
- Scan Flow
Final Challenge App/Features/Scan/ScanViewModel.swift - AR Session
Final Challenge App/Services/ScanSession.swift - Camera Access
Final Challenge App/Services/CameraPermission.swift - Depth Grouping
Packages/MeasureKit/Sources/MeasureKit/DepthGrouping.swift - Depth Sampling
Packages/MeasureKit/Sources/MeasureKit/DepthSampler.swift - Scan Measurements
Packages/MeasureKit/Sources/MeasureKit/ScanMeasurements.swift - World Geometry
Packages/MeasureKit/Sources/MeasureKit/WorldBox.swift
Setup Management
- Project Details
Final Challenge App/Features/ProjectDetails/ProjectDetailsViewModel.swift - Recently Deleted
Final Challenge App/Features/RecentlyDeleted/RecentlyDeletedViewModel.swift - Setup Storage
Final Challenge App/Services/StorageController.swift - Reference Images
Final Challenge App/Models/ReferenceImage.swift
Diagram Review
- Review Diagram
Final Challenge App/Features/Review/ReviewView.swift - Review State
Final Challenge App/Features/Review/ReviewViewModel.swift - Lighting Diagram
Final Challenge App/Shared/LightingDiagramView.swift
Domain and Output
- Setup Model
Final Challenge App/Models/Setup.swift - Equipment Model
Final Challenge App/Models/Equipment.swift - PDF Export
Final Challenge App/Services/PDFRenderer.swift - PDF Diagram Layout
Final Challenge App/Shared/PDFDiagramLayout.swift
Other components
- Photographer
Connections 22
- Photographer → App Entry: opens
Final Challenge App/App/MyApp.swift - App Entry → Setup Browser: shows
- Setup Browser → Scan Flow: starts scan
- Scan Flow → AR Session: controls
Final Challenge App/Features/Scan/ScanViewModel.swift - Scan Flow → Camera Access: checks permission
Final Challenge App/Features/Scan/ScanViewModel.swift - Scan Flow → Depth Grouping: uses
Final Challenge App/Features/Scan/ScanViewModel.swift - Scan Flow → Depth Sampling: uses
Final Challenge App/Features/Scan/ScanViewModel.swift - Scan Flow → Scan Measurements: uses
Final Challenge App/Features/Scan/ScanViewModel.swift - Scan Flow → World Geometry: uses
Final Challenge App/Features/Scan/ScanViewModel.swift - Scan Flow → Setup Storage: persists setup
Final Challenge App/Features/Scan/ScanViewModel.swift - Setup Browser → Setup Storage: loads setups
- Project Details → Setup Storage: saves details
Final Challenge App/Features/ProjectDetails/ProjectDetailsViewModel.swift - Recently Deleted → Setup Storage: manages deleted
- Setup Storage → Setup Model: stores
Final Challenge App/Services/StorageController.swift - Setup Storage → Equipment Model: stores
Final Challenge App/Services/StorageController.swift - Setup Storage → Reference Images: stores
Final Challenge App/Services/StorageController.swift - Review Diagram → Review State: interacts with
Final Challenge App/Features/Review/ReviewView.swift - Review Diagram → Lighting Diagram: renders
- Review State → Setup Storage: reads and writes
Final Challenge App/Features/Review/ReviewViewModel.swift - Review State → Equipment Model: edits
Final Challenge App/Features/Review/ReviewViewModel.swift - Review State → Setup Model: edits
Final Challenge App/Features/Review/ReviewViewModel.swift - PDF Export → PDF Diagram Layout: uses layout