Change background color and text color to improve text readability for visually impaired prompt.

Closes #732
This commit is contained in:
Iván Dombiak 2022-12-20 14:14:00 -08:00
parent 0f28f9aedd
commit 91547939f3
1 changed files with 6 additions and 3 deletions

View File

@ -46,12 +46,15 @@ public struct AttachmentView: View {
}
}()
Spacer()
TextField(placeholder, text: $viewModel.caption)
TextField("", text: $viewModel.caption)
.lineLimit(1)
.textFieldStyle(.plain)
.foregroundColor(.white)
.placeholder(placeholder, when: viewModel.caption.isEmpty)
.padding(8)
.background(Color.black.opacity(0.4))
.placeholder(when: viewModel.caption.isEmpty) {
Text(placeholder).foregroundColor(.white)
}
.padding(6)
}
)