diff --git a/ios/engine/KMEI/KeymanEngine/Classes/InputViewController.swift b/ios/engine/KMEI/KeymanEngine/Classes/InputViewController.swift index b596a8e6e7..243feae04b 100644 --- a/ios/engine/KMEI/KeymanEngine/Classes/InputViewController.swift +++ b/ios/engine/KMEI/KeymanEngine/Classes/InputViewController.swift @@ -134,6 +134,14 @@ open class InputViewController: UIInputViewController, KeymanWebViewDelegate { super.viewDidAppear(animated) setConstraints() inputView?.setNeedsUpdateConstraints() + + //TODO: find out why this is actually happening + if let containerView = self.containerView { + if containerView.subviews.isEmpty { + Manager.shared.inputDelegate = self + containerView.addSubview(kmInputView) + } + } } open override func willRotate(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval) {