From 7ea838f793c57e954466c34cb8b105d51e065ecc Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sat, 16 Nov 2019 14:34:35 -0600 Subject: [PATCH] Added missing constraints needed for iPad. --- iOS/Add/AddContainerViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)