The correct way to use the FormVC is with the Container, as per the comment in the question.
Hi chefren the problem with your approach is that the
FormViewControllerlifecycle is not being handled because you are not adding it to the view controllers hierarchy. Actually you are only adding its view to one of your views.
keyboardWillShowis not being called due to the
FormViewControlleradds this observer to the notification
Notification.Name.UIKeyboardWillShowfrom the function
viewWillAppear, which in your case is not being called. As this, other stuff may not work properly, because the view controller lifecycle is not being handled.
That is not the way the
FormViewControllershould be used. Using it in that way may end up with an undesired behavior like you experienced. The correct way to embed a
FormViewControllerin other view controller's view is by adding it as a Child View Controller. See this Apple guide for further information Implementing a Container View Controller. Additionally, in storyboards you can use a