From 32e4a6fa241f55dca1b510a3ca66a580e3da117c Mon Sep 17 00:00:00 2001 From: Stephen Sowole Date: Thu, 9 May 2019 15:20:27 -0700 Subject: [PATCH] No need to dismiss during size class change --- PanModal/Delegate/PanModalPresentationDelegate.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/PanModal/Delegate/PanModalPresentationDelegate.swift b/PanModal/Delegate/PanModalPresentationDelegate.swift index 5116abd..b35fc3e 100644 --- a/PanModal/Delegate/PanModalPresentationDelegate.swift +++ b/PanModal/Delegate/PanModalPresentationDelegate.swift @@ -73,7 +73,6 @@ extension PanModalPresentationDelegate: UIAdaptivePresentationControllerDelegate Dismisses the presented view controller */ public func adaptivePresentationStyle(for controller: UIPresentationController, traitCollection: UITraitCollection) -> UIModalPresentationStyle { - controller.presentedViewController.dismiss(animated: false, completion: nil) return .none }