From d120e6669a0781ccc969cbfd0dfa21d4c5a0dc01 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Thu, 29 May 2025 12:26:28 +0545 Subject: [PATCH] fixed trigger word UI not appearing on custom prompts --- VoiceInk/Views/PromptEditorView.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/VoiceInk/Views/PromptEditorView.swift b/VoiceInk/Views/PromptEditorView.swift index b3531d0..9b036f1 100644 --- a/VoiceInk/Views/PromptEditorView.swift +++ b/VoiceInk/Views/PromptEditorView.swift @@ -206,6 +206,22 @@ struct PromptEditorView: View { } .padding(.horizontal) + // Trigger Word Field + VStack(alignment: .leading, spacing: 8) { + Text("Trigger Word") + .font(.headline) + .foregroundColor(.secondary) + + Text("Optional word to quickly activate this prompt") + .font(.subheadline) + .foregroundColor(.secondary) + + TextField("Enter a trigger word (optional)", text: $triggerWord) + .textFieldStyle(.roundedBorder) + .font(.body) + } + .padding(.horizontal) + if case .add = mode { // Templates Section with modern styling VStack(alignment: .leading, spacing: 16) {