Keyboard dismissed when switching apps

Scenario is when keyboard is opened within the app being developed then switch to other app, for instance, Notes app and create a note to enable keyboard from there. While the Notes app keyboard is active switch back to the developed app the keyboard in it is dismissed. Any thoughts?Thanks

In addition, this does not happen when the app is connected to Xcode

Keyboard dismissed when switching apps
 
 
Q