Embedded application keyboardfocus

Hello guys!

I embedded my juce application into a swift project (because of custom needs).
Firstly I wanted to test out if clicking on the TextEditor calls the keyboard if its embedded. But unfortunately no. I wrote a simple gui app only with a text editor, I can get mouseUp and another calls well, but when i click into a text editor, it doesnt show me the keyboard so the text isnt editable this way.

What should be the solution?