import SwiftUI struct DebugTextBlock: View { let title: String let content: String var body: some View { VStack(alignment: .leading, spacing: 8) { Text(title) .font(.caption.weight(.semibold)) .foregroundStyle(.secondary) .textCase(.uppercase) Text(content) .font(.caption.monospaced()) .foregroundStyle(.primary) .textSelection(.enabled) .frame(maxWidth: .infinity, alignment: .leading) .padding(12) .background(Color(.secondarySystemBackground), in: RoundedRectangle(cornerRadius: 12)) } } } struct CopyConfirmationBadge: View { let message: String var body: some View { HStack(spacing: 6) { Image(systemName: "checkmark.circle.fill") .font(.caption) Text(message) .font(.caption.weight(.medium)) } .foregroundStyle(.white) .padding(.horizontal, 12) .padding(.vertical, 8) .background(.green.gradient, in: Capsule()) } }