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()
|
Spacer()
|
||||||
TextField(placeholder, text: $viewModel.caption)
|
TextField("", text: $viewModel.caption)
|
||||||
.lineLimit(1)
|
.lineLimit(1)
|
||||||
.textFieldStyle(.plain)
|
.textFieldStyle(.plain)
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.placeholder(placeholder, when: viewModel.caption.isEmpty)
|
.background(Color.black.opacity(0.4))
|
||||||
.padding(8)
|
.placeholder(when: viewModel.caption.isEmpty) {
|
||||||
|
Text(placeholder).foregroundColor(.white)
|
||||||
|
}
|
||||||
|
.padding(6)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue