I'm trying to get whether the cursor is inside the SecureField
. If we're using TextField
, we can achieve that by using onEditingChange
, and we're good to go, but this isn't an option in SecureField
, any solutions?
Notes:
- I don't want to use
onTapGesture
since there are other ways to gain focus other than taping on the field - I don't want to use
@FocusState
since I'm building for ios versions less than 15