mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-30 01:37:50 +00:00
fix(ios): forgot to actually add replacement WebView as subview
This commit is contained in:
parent
d45fbba807
commit
4248486e3b
1 changed files with 4 additions and 3 deletions
|
|
@ -946,11 +946,12 @@ extension KeymanWebViewController {
|
|||
constraint.isActive = false
|
||||
}
|
||||
|
||||
let hadParent = oldView.superview != nil
|
||||
oldView.removeFromSuperview()
|
||||
self.loadView()
|
||||
|
||||
if hadParent {
|
||||
let parent = oldView.superview
|
||||
oldView.removeFromSuperview()
|
||||
if parent != nil {
|
||||
parent!.addSubview(self.view)
|
||||
setConstraints()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue