diff --git a/Pod/Classes/SideMenuNavigationController.swift b/Pod/Classes/SideMenuNavigationController.swift index d88bb8b6..9e0893ef 100644 --- a/Pod/Classes/SideMenuNavigationController.swift +++ b/Pod/Classes/SideMenuNavigationController.swift @@ -539,8 +539,12 @@ private extension SideMenuNavigationController { } func setup() { - modalPresentationStyle = .overFullScreen - + if #available(iOS 13.0, *) { + modalPresentationStyle = isiPad ? .automatic : .overFullScreen + } else { + modalPresentationStyle = isiPad ? .overCurrentContext : .overFullScreen + } + setupBlur() if #available(iOS 13.0, *) {} else { registerForNotifications() @@ -654,3 +658,11 @@ private extension SideMenuNavigationController { return -presentFactor } } + +extension UIResponder { + var isiPad: Bool { + get { + UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.pad + } + } +}