2
2
mirror of https://github.com/mastodon/mastodon-ios synced 2025-04-11 22:58:02 +02:00

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

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)
}
)