Swiftui solutions that really syncs text editor and keyboard to make a chat input box

Hi there:

I was testing many different ways to sync text editor and keyboard movement, but always I obtain a delay or not exacting the same keyboard movement.

How can I get it?

The best way that I got is using a safe area inset, but always start later and ends before the keyboard movement.

Thanks in advance.

(Any solution including bridge between swiftui and UIKit will be much appreciated if the movement sync is right)

Swiftui solutions that really syncs text editor and keyboard to make a chat input box
 
 
Q