Update: I have seen your screenshot update to the question and I would like to point out that the issue that you are trying to solve has nothing to do with modal presentations. The content of the ‘view’ of a ‘UIViewController’ does not fill the screen because it’s constrained either to the Safe Area or the margins of the its superview.
Initial answer:
Lol but that’s a feature and not a bug. The “Show” setting that you are talking about only controlls the animation. In order to discard all instantiated modal presentation contexts you have to swap out the ‘rootViewController’ of the ‘UIWindow’ in which this contexts exist.
Please note that storyboard segues feature no support for this in UIKit.
Please note that usage of storyboard segues is an ill practice and should be considered deprecated. The primary reason for this is that it prevents programmer from establishing a proper routing layer in the application leading to a rapidly increasing technical debt.