PM-.snap-Import (FieldsToApply, Merge, Aufnahmedatum), Aufnahmeort/Copyright-Status/DataMining, FTP-Profile Beautiful Sports

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012bGzgsxrmbBhDzeMV2L57D
This commit is contained in:
Lichtkasten DevandClaude Opus 5.5 committed 2026-11-03 22:57:14 +00:00
1 parent 0b41f09206
commit 42ab9c9361
13 files changed
+472 -39

No files matched your search

+20 -2
View File
@@ -103,16 +103,34 @@ struct TemplateManagerView: View {
ForEach(ListMergeMode.allCases, id: \.self) { Text($0.rawValue).tag($0) }
}
.fixedSize()
Toggle("Leere Felder löschen beim Anwenden", isOn: $state.templates[i].clearEmptyFields)
Toggle("Nur angehakte Felder (wie PM)", isOn: Binding(
get: { state.templates[i].appliedFields != nil },
set: { on in
let t = state.templates[i]
state.templates[i].appliedFields = on
? Set(IPTCField.all.filter { !t.values.isEmpty($0) }.map(\.id)) : nil
}))
if state.templates[i].appliedFields == nil {
Toggle("Leere Felder löschen", isOn: $state.templates[i].clearEmptyFields)
}
Toggle("Datum = Aufnahmezeit", isOn: $state.templates[i].dateFromCapture)
.help("Erstellungsdatum/-zeit aus der EXIF-Aufnahmezeit jedes Bildes (PM: Apply Date → Capture Date)")
}
.font(.callout)
if !state.templates[i].unmappedPMCodes.isEmpty {
Text("Unbekannte PM-Feldcodes: \(state.templates[i].unmappedPMCodes.joined(separator: ", ")) – bitte Häkchen prüfen.")
.font(.caption).foregroundStyle(.orange)
}
if !state.templates[i].extras.isEmpty {
Text("\(state.templates[i].extras.count) zusätzliche XMP-Felder aus PM werden beim Export beibehalten.")
.font(.caption).foregroundStyle(.secondary)
}
Divider()
ScrollView {
IPTCFieldsForm(texts: $texts) { _ in save() }
IPTCFieldsForm(texts: $texts, onEdit: { _ in save() },
applied: state.templates[i].appliedFields == nil ? nil : Binding(
get: { state.templates[i].appliedFields ?? [] },
set: { state.templates[i].appliedFields = $0 }))
.padding(.trailing, 8)
}
}