Update text field style
This commit is contained in:
parent
2d11418aa6
commit
99c16b368d
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ struct PwdTextFieldStyle: TextFieldStyle {
|
||||||
func _body(configuration: TextField<Self._Label>) -> some View {
|
func _body(configuration: TextField<Self._Label>) -> some View {
|
||||||
configuration
|
configuration
|
||||||
.padding(EdgeInsets(top: 8, leading: 8, bottom: 8, trailing: 8))
|
.padding(EdgeInsets(top: 8, leading: 8, bottom: 8, trailing: 8))
|
||||||
.background(colorScheme == .dark ? .black : .white)
|
.background(colorScheme == .dark ? .black.opacity(0.1) : .white)
|
||||||
.foregroundColor(colorScheme == .dark ? .white : .black)
|
.foregroundColor(colorScheme == .dark ? .white : .black)
|
||||||
.textFieldStyle(.plain)
|
.textFieldStyle(.plain)
|
||||||
.cornerRadius(radius)
|
.cornerRadius(radius)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue