I've attached reference image. I want to know the 1 or 2 magic lines. I've tried in many ways with different styles but could not able to achieve.
As you can see in below image at Right side iPad screen has presented screen with curved and behind screens moved up side.

If I understood your question correctly, you wanted to show the presented
viewcontrollersuch that theviewcontrollershould take full screen size as of presentingviewcontroller.If that's the requirement, then you can set
modalPresentationStyleof presentingviewcontrolleras.fullScreento achieve thatCode: