I have a VC, and I want to click it and see the VC that is under it.
I can do this if I imagine if modally ( Show clearColor UIViewController via UIViewController )
But is it possible to implement this function through push VC? Or do I need to create a custom transition?
To expand a Wain comment:
UIImage
Here is a possible implementation in Swift:
override func viewDidLoad() { super.viewDidLoad() // render parent view in a UIImage UIGraphicsBeginImageContext(self.view.bounds.size); self.parent?.view.layer.render(in: UIGraphicsGetCurrentContext()!) let viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); // add the image as background of the view self.view.insertSubview(UIImageView(image: viewImage), at: 0)