I’m not sure what value it has, but you can use a UIAdaptivePresentationControllerDelegate to disable the default adaption from a form/page sheet to full screen in a compact width environment. It’s not quite the same (the presenting view controller doesn’t change size), but it looks similar and, importantly, does not remove the presenting view controller from the view hierarchy. Of course, it doesn’t support swipe to dismiss or the iOS 13-only delegate methods.

In my Adaptivity app there is a setting called “Adapt Modal Presentations”. That is enabled by default, but when it is disabled I use the delegate to prevent the adaption to full screen.

// If we do NOT want to adapt modal presentations, use a delegate to prevent adaptation
if ([ADTAppSettingsManager sharedInstance].adaptModalPresentations.value == NO) { navigationController.presentationController.delegate = self; } [self presentViewController:navigationController animated:YES completion:nil];}
#pragma mark - UIAdaptivePresentationControllerDelegate
- (UIModalPresentationStyle)adaptivePresentationStyleForPresentationController:(UIPresentationController *)controller traitCollection:(nonnull UITraitCollection *)traitCollection{
// This *prevents* adaption to full screen in compact width environments
return UIModalPresentationNone;}

Independent and freelance software developer for iPhone, iPad and Mac

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store