Add lead workflows, PDF signing, AR projects and photo gallery integration

This commit is contained in:
Dennis Nemec
2026-11-08 17:49:39 +01:00
parent a343bde741
commit 8d18873412
82 changed files with 6401 additions and 34 deletions

View File

@ -63,6 +63,7 @@ final class DocuframeViewModel {
successText: String,
action: ([DocuframePhoto], String) async throws -> Void
) async {
guard !isProcessing else { return }
let selected = photos.filter { selectedIDs.contains($0.persistentModelID) }
guard !selected.isEmpty else {
result = .failure(message: DocuframeError.noPhotosSelected.localizedDescription)
@ -85,7 +86,7 @@ final class DocuframeViewModel {
/// Bildet das Persistenz-Model auf ein persistenzunabhängiges Domänen-DTO ab.
private static func makeDTO(_ photo: ProjectPhoto) -> DocuframePhoto {
DocuframePhoto(
imageData: photo.imageData,
imageData: photo.annotatedImageData ?? photo.imageData,
creationDate: photo.creationDate,
latitude: photo.latitude,
longitude: photo.longitude