We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfff2f4 commit 22ac00aCopy full SHA for 22ac00a
Lingua-App/Lingua/Lingua/Utils/Components/UI/ValidatingTextField.swift
@@ -37,8 +37,9 @@ struct ValidatingTextField: View {
37
VStack(alignment: .leading, spacing: 5) {
38
TextField(title, text: $localText)
39
.disabled(isDisabled)
40
- .cornerRadius(8)
41
.focused($isFocused)
+ .frame(minHeight: 20)
42
+ .padding(.trailing)
43
.onChange(of: isFocused) { focused in
44
if !focused {
45
validate()
@@ -51,6 +52,10 @@ struct ValidatingTextField: View {
51
52
.font(.caption)
53
}
54
55
+ .contentShape(Rectangle())
56
+ .onTapGesture {
57
+ isFocused = true
58
+ }
59
.onAppear {
60
isValid = validation.validate(text)
61
0 commit comments