Presented viewController size shink in iPad after iOS 18

We present a viewController by embedding it into a UINavigationController and then presenting that navigation controller.

        let navigationController = UINavigationController(rootViewController: invCreateIssueViewController)
        self.present(navigationController, animated: true)

The size of the presented view controller has reduced a lot in ipad in iOS 18. How do I get the same full screen presentation as iOS 17 in iOS 18?

Presented viewController size shink in iPad after iOS 18
 
 
Q