Change background color and text color to improve text readability for visually impaired prompt.
Closes #732
This commit is contained in:
parent
0f28f9aedd
commit
91547939f3
|
@ -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)
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue