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.

enter image description here

1

There are 1 best solutions below

1
Janmenjaya On

If I understood your question correctly, you wanted to show the presented viewcontroller such that the viewcontroller should take full screen size as of presenting viewcontroller.

If that's the requirement, then you can set modalPresentationStyle of presenting viewcontroller as .fullScreen to achieve that

Code:

    let secondVC = SecondViewController()
    secondVC.modalPresentationStyle = .fullScreen
    self.present(secondVC, animated: true) {
        
    }