I have VC and I want to push it and to see the VC that under it.
I can do it if I present if modally (Display clearColor UIViewController over UIViewController)
But is it possible to implement this feature via push VC? Or I need to create custom transition ?
To expand on Wain's 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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With