ios – How to let back viewcontroller don’t shrink when back viewcontroller present another viewcontroller


I want to lock viewcontroller when i present another viewcontroller, like following image1.
I also change vc parameter modalPresentationStyle and not work to this situation.
And how to achieve this results?
Now I present viewcontroller also like following image2.
Have any parameter that I miss to set?

let vc = ExampleVC(nibName: "ExampleVC", bundle: nil)
var naviVC = UINavigationController(rootViewController: vc)
naviVC.modalPresentationStyle = .pageSheet // any value not work
        
DispatchQueue.main.async {
    self.present(naviVC, animated: true, completion: nil)
}

image1:
image1_perfect1

image2:
image2_bad2

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img