Ios 带有现有UINavigationController的自适应segue

Ios 带有现有UINavigationController的自适应segue,ios,swift,uinavigationcontroller,adaptive-ui,Ios,Swift,Uinavigationcontroller,Adaptive Ui,我在iPad上的应用程序中有一个模式(表单)序列,当horizontalSizeClass为regular时,它会变为UINavigationController。 为了实现这一点,我正在使用UIAdaptivePresentationControllerDelegate,如下代码所示: extension MyListViewController: UIAdaptivePresentationControllerDelegate { func presentationControlle

我在iPad上的应用程序中有一个模式(表单)序列,当
horizontalSizeClass
regular
时,它会变为
UINavigationController
。 为了实现这一点,我正在使用
UIAdaptivePresentationControllerDelegate
,如下代码所示:

extension MyListViewController: UIAdaptivePresentationControllerDelegate {
    func presentationController(_ controller: UIPresentationController, viewControllerForAdaptivePresentationStyle style: UIModalPresentationStyle) -> UIViewController? {
        if style == .fullScreen {
            return UINavigationController(rootViewController: controller.presentedViewController)
        }
    }
}
但是,我希望我的
presentedViewController
不会显示在新的
UINavigationController
中,而是显示在整个应用程序中已使用的同一
UINavigationController
中。这样,我就不需要指定后退按钮,并且可以重用主
UINavigationController
的相同
navigationBar

我如何实现这一点