diff options
Diffstat (limited to 'Hutch/Extensions/PowerUserActions.swift')
| -rw-r--r-- | Hutch/Extensions/PowerUserActions.swift | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Hutch/Extensions/PowerUserActions.swift b/Hutch/Extensions/PowerUserActions.swift new file mode 100644 index 0000000..97e4d52 --- /dev/null +++ b/Hutch/Extensions/PowerUserActions.swift @@ -0,0 +1,40 @@ +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()) + } +} |
