Is there any documentation available on how to work with FocusState for a custom control using UIViewRepresentable?

So I am trying to implement a custom control using UIViewRepresentable. Basically I want to wrap a UITextField to have more precise control over the focus behavior.

I would like to have this control integrate with the SwiftUI focus system. As far as I have gotten, I understand that I would probably need to have my custom coordinator refer events back and fourth between the UITextField and the @FocusState somehow, but I cannot find any documentation on this.

Is there an example out there somewhere, or else is there any open-source code which shows how @FocusState is working with existing controls?

Did you ever figure out a good solution for this?

Is there any documentation available on how to work with FocusState for a custom control using UIViewRepresentable?
 
 
Q