Fixed that iOS 14 sometimes doesn't focus text field on click
This commit is contained in:
parent
0bfeddeea3
commit
fc6d2042af
|
@ -83,6 +83,11 @@ struct LabelledUIKitTextField: View {
|
||||||
})
|
})
|
||||||
.hidden() // Hide the background
|
.hidden() // Hide the background
|
||||||
)
|
)
|
||||||
|
.onTapGesture {
|
||||||
|
DispatchQueue.main.async {
|
||||||
|
self.focusTextField = true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue