I am trying to use my customTextfield in other screen.. I'm trying to make keyboard appear when textField is tapped.. I'm using focusState
here to do so.. but keyboard pop is not working.. Note: tapGesture is working as it prints "hello" when it is tapped. if this is due to layout or view hierarchy problem, i m happy to know your views/thought on it.
TextField(placeHolder, text: $text)
.autocorrectionDisabled(true)
.focused($isFocused)
.foregroundColor(color)
.onTapGesture {
isFocused = true
print("hello")
}