Adding inset to the text of the user due to the prompt having the inset but not the user text.

This commit is contained in:
Iván Dombiak 2022-12-23 20:26:28 -08:00
parent c89ff95f0c
commit 93eeface69
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public struct AttachmentView: View {
TextField("", text: $viewModel.caption)
.lineLimit(1)
.textFieldStyle(.plain)
.foregroundColor(.white)
.foregroundColor(.white).padding(EdgeInsets(top: 0, leading: 8, bottom: 0, trailing: 4))
.background(Color.black.opacity(0.4))
.placeholder(when: viewModel.caption.isEmpty) {
Text(placeholder).foregroundColor(.white).padding(EdgeInsets(top: 0, leading: 8, bottom: 0, trailing: 4))