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:
parent
c89ff95f0c
commit
93eeface69
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue