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:
1 parent
0b41f09206
commit
42ab9c9361
13 files changed
+472
-39
No files matched your search
@@ -23,6 +23,8 @@ struct IPTCFieldsForm: View {
|
||||
var mixed: Set<String> = []
|
||||
var dirty: Set<String> = []
|
||||
var onEdit: (String) -> Void = { _ in }
|
||||
/// PM-style "apply" checkboxes (template editor only).
|
||||
var applied: Binding<Set<String>>? = nil
|
||||
@AppStorage("collapsedIPTCSections") private var collapsedRaw = ""
|
||||
|
||||
var body: some View {
|
||||
@@ -32,8 +34,21 @@ struct IPTCFieldsForm: View {
|
||||
DisclosureGroup(isExpanded: expandedBinding(section)) {
|
||||
VStack(alignment: .leading, spacing: 6) {
|
||||
ForEach(fields) { field in
|
||||
FieldRow(field: field, text: binding(field), isMixed: mixed.contains(field.id) && !dirty.contains(field.id),
|
||||
isDirty: dirty.contains(field.id))
|
||||
HStack(alignment: .top, spacing: 6) {
|
||||
if let applied {
|
||||
Toggle("", isOn: Binding(
|
||||
get: { applied.wrappedValue.contains(field.id) },
|
||||
set: { on in
|
||||
if on { applied.wrappedValue.insert(field.id) } else { applied.wrappedValue.remove(field.id) }
|
||||
}))
|
||||
.toggleStyle(.checkbox)
|
||||
.labelsHidden()
|
||||
.padding(.top, 16)
|
||||
.help("Feld beim Anwenden schreiben (wie das Häkchen in Photo Mechanic)")
|
||||
}
|
||||
FieldRow(field: field, text: binding(field), isMixed: mixed.contains(field.id) && !dirty.contains(field.id),
|
||||
isDirty: dirty.contains(field.id))
|
||||
}
|
||||
}
|
||||
}
|
||||
.padding(.top, 4)
|
||||
|
||||
Reference in new issue
Block a user