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

@ -0,0 +1,34 @@
import SwiftUI
struct LeadSigningHeaderView: ToolbarContent {
let offerID: String
let current: Int
let total: Int
let isComplete: Bool
let isSigning: Bool
let canConfirm: Bool
let onClose: () -> Void
var body: some ToolbarContent {
ToolbarItem(placement: .cancellationAction) {
Button(role: .cancel, action: onClose)
.labelStyle(.iconOnly)
.disabled(isSigning)
}
ToolbarItem(placement: .principal) {
VStack(spacing: 3) {
Text(offerID).font(.headline)
if isComplete {
Text("Alle Dokumente unterschrieben").font(.caption).foregroundStyle(.secondary)
} else {
Text("Dokument \(current) von \(total)").font(.caption).foregroundStyle(.secondary)
}
}
}
ToolbarItem(placement: .confirmationAction) {
Button(role: .confirm, action: onClose)
.labelStyle(.iconOnly)
.disabled(!canConfirm)
}
}
}