Hello, Is there any method by which we can get cur...
# compose
t
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
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.