How adawalkietalkie/glayer works
Glayer is a visionOS spatial moodboard editor: users create projects, import images and sounds, arrange them as editable scene objects, then view the scene in volume or full immersive mode. The graph captures project/library setup, asset and scene persistence, spatial editing, and sound playback. The README documents background removal, layered images and immersive viewing; unsampled implementation details are represented only where the tree supports a subsystem, and uncertain connections are omitted.
Main entry points: GlayerApp.swift App shell · SceneViewModel.swift Scene orchestration · AssetRepository.swift Asset repository · SceneRealityView.swift Scene editor
Components 28
App and projects
- App shell
Glayer/App/GlayerApp.swift - App state
Glayer/Sources/Presentations/Coordinator/AppStateManager.swift - Project browser
Glayer/Sources/Presentations/ProjectList/View/ProjectListView.swift - Project workflow
Glayer/Sources/Presentations/ProjectList/ViewModel/ProjectListViewModel.swift
Asset library
- Asset library
Glayer/Sources/Presentations/Library/LibraryList/View/LibraryView.swift - Library workflow
Glayer/Sources/Presentations/Library/LibraryList/ViewModel/LibraryViewModel.swift - Asset import
Glayer/Sources/Data/UseCase/ImportUseCase.swift - Import strategies
Glayer/Sources/Data/Strategies/Import - Asset repository
Glayer/Sources/Data/Repositories/AssetRepository.swift - Asset records
Glayer/Sources/Models/AssetFile/Asset.swift - Background removal
Glayer/Sources/Presentations/Library/ImageEditor
Scene editing
- Scene editor
Glayer/Sources/Presentations/SceneRealityView/View/SceneRealityView.swift - Scene orchestration
Glayer/Sources/Presentations/SceneRealityView/ViewModel/SceneViewModel.swift - Scene objects
Glayer/Sources/Models/Scene/SceneObjectModels/SceneObject.swift - Spatial gestures
Glayer/Sources/Common/Gesture - Reality entities
Glayer/Sources/Data/Repositories/EntityRepository.swift - Volume experience
Glayer/Sources/Presentations/SceneRealityView/View/VolumeScene/VolumeSceneView.swift - Immersive experience
Glayer/Sources/Presentations/SceneRealityView/View/Immersive/ImmersiveSceneView.swift - Scene audio
Glayer/Sources/Helpers/SoundPlayer/SceneAudioCoordinator.swift
Persistence and media
- Project service
Glayer/Sources/Data/Services/ProjectService.swift - Project record
Glayer/Sources/Models/Project.swift - Image processing
Glayer/Sources/Data/Services/ImageAssetService.swift - Sound processing
Glayer/Sources/Data/Services/SoundAssetService.swift - Scene state
Glayer/Sources/Models/Scene/SceneModel.swift - Scene persistence
Glayer/Sources/Helpers/FileManager/Storages/SceneModelFileStorage.swift - Project files
Glayer/Sources/Helpers/FileManager/Storages/ProjectFileStorage.swift - File paths
Glayer/Sources/Helpers/FileManager/Core/FilePathProvider.swift
Other components
- Moodboard creator
Connections 37
- Moodboard creator → App shell: uses
- App shell → App state: configures
Glayer/App/GlayerApp.swift - App shell → Project service: configures
Glayer/App/GlayerApp.swift - App shell → Asset repository: configures
Glayer/App/GlayerApp.swift - App shell → Scene persistence: configures
Glayer/App/GlayerApp.swift - App shell → Scene editor: opens
Glayer/App/GlayerApp.swift - App shell → Immersive experience: opens
Glayer/App/GlayerApp.swift - Project browser → Project workflow: uses
- Project workflow → Project service: manages
- Project service → Project record: stores
Glayer/Sources/Data/Services/ProjectService.swift - Project workflow → App state: selects project
- App state → Scene editor: selects scene
- Asset library → Library workflow: uses
- Library workflow → Asset repository: manages assets
- Library workflow → Asset import: imports
- Asset import → Import strategies: dispatches
- Asset import → Asset repository: adds assets
- Asset repository → Asset records: creates
Glayer/Sources/Data/Repositories/AssetRepository.swift - Asset repository → Image processing: uses
- Asset repository → Sound processing: uses
- Asset library → Background removal: offers editing
README.md - Scene editor → Scene orchestration: uses
- Scene orchestration → Scene state: updates
Glayer/Sources/Presentations/SceneRealityView/ViewModel/SceneViewModel.swift - Scene orchestration → Scene objects: manages
Glayer/Sources/Presentations/SceneRealityView/ViewModel/SceneViewModel.swift - Scene orchestration → Spatial gestures: handles
- Scene orchestration → Reality entities: dispatches
- Reality entities → Scene objects: builds entities
Glayer/Sources/Data/Repositories/EntityRepository.swift - Scene orchestration → Scene persistence: persists
Glayer/Sources/Presentations/SceneRealityView/ViewModel/SceneViewModel.swift - Scene persistence → Scene state: encodes
Glayer/Sources/Helpers/FileManager/Storages/SceneModelFileStorage.swift - Scene persistence → File paths: resolves paths
Glayer/Sources/Helpers/FileManager/Storages/SceneModelFileStorage.swift - Project files → File paths: resolves paths
Glayer/Sources/Helpers/FileManager/Storages/ProjectFileStorage.swift - App state → Volume experience: switches mode
- App state → Immersive experience: switches mode
- Immersive experience → Scene editor: renders scene
README.md - Scene orchestration → Scene audio: coordinates audio
- Scene editor → Scene objects: layers images
README.md - Scene editor → Scene audio: plays spatial sound
README.md