Hello, Is there any method by which we can get current cusror position in TextField in compose, My usecase is I have a textfield in which i can mention any person by adding a
"@",
Just like slack, How can i check for
@
at any position and then replace it with the name selected?
s
s3rius
03/03/2023, 9:25 PM
Afaik you have an overload of Textfield that takes a
TextFieldValue
(or something like that) instead of a string. That contains the cursor position (or rather, selection) as well.