diff --git a/iOS/Add/AddContainerViewController.swift b/iOS/Add/AddContainerViewController.swift index 38aeaf2be..38e3683d2 100644 --- a/iOS/Add/AddContainerViewController.swift +++ b/iOS/Add/AddContainerViewController.swift @@ -146,7 +146,7 @@ private extension AddContainerViewController { transition.subtype = currentViewController is AddWebFeedViewController ? .fromRight : .fromLeft containerView.layer.add(transition, forKey: "transition") - containerView.addSubview(controller.view) + containerView.addChildAndPin(controller.view) addChild(controller) controller.didMove(toParent: self) @@ -156,7 +156,7 @@ private extension AddContainerViewController { } else { - containerView.addSubview(controller.view) + containerView.addChildAndPin(controller.view) addChild(controller) controller.didMove(toParent: self)