diff --git a/Flipcash/Core/Screens/Conversation/ConversationBottomBar.swift b/Flipcash/Core/Screens/Conversation/ConversationBottomBar.swift index e0c2a1405..795140fa5 100644 --- a/Flipcash/Core/Screens/Conversation/ConversationBottomBar.swift +++ b/Flipcash/Core/Screens/Conversation/ConversationBottomBar.swift @@ -265,7 +265,7 @@ struct ConversationComposer: View { var body: some View { let field = HStack(alignment: .bottom, spacing: 10) { - TextField("Message", text: $composer.draft, axis: .vertical) + TextField(fieldPrompt, text: $composer.draft, axis: .vertical) .font(.appTextMessage) .foregroundStyle(Color.textMain) .tint(.white) @@ -323,6 +323,15 @@ struct ConversationComposer: View { } } + /// The hint names what the field will send. An edit arrives with the existing text already in + /// the field, so its hint is never on screen and stays the new-message one. + private var fieldPrompt: String { + switch composer.mode { + case .new, .editing: "Message" + case .replying: "Reply" + } + } + /// The confirm button is up for the whole of an edit, as it is in WhatsApp, and only once /// there's text to send otherwise. private var showsSubmit: Bool { composer.isEditing || composer.canSubmit }