fix(ios): prevent repeating timer from keeping inaccessible WebViews alive

This commit is contained in:
Joshua Horton 2025-07-28 08:55:05 -05:00
parent 665295537e
commit d66fa6affe
2 changed files with 5 additions and 0 deletions

View file

@ -165,6 +165,7 @@ open class InputViewController: UIInputViewController, KeymanWebDelegate {
inputView?.removeFromSuperview()
(inputView as? CustomInputView)?.destroy()
inputView = nil
keymanWeb.clearDeathPoller()
}
open override func updateViewConstraints() {

View file

@ -219,6 +219,10 @@ class KeymanWebViewController: UIViewController {
reloadKeyboard()
}
func clearDeathPoller() {
self.deathPoller?.invalidate()
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)