Answer the question
In order to leave comments, you need to log in
How to make the ViewController visible on top of the previous one? Like UIAlertController?
I agree. The wording is terrible, noted t. I will show an example
Or something like UIAlertController
Answer the question
In order to leave comments, you need to log in
everything is simple:
topViewController.view.backgroundColor = UIColor.clear
topViewController.modalPresentationStyle = .overFullScreen
bottomViewController.present(topViewController, animated: true, completion: nil)
Perhaps you need a Pop Up View Controller. Those. displaying the new VC on top of ours. Here is a link to a video I watched on this topic:
https://www.youtube.com/watch?v=FgCIRMz_3dE
It's like your example.
If you want the new VC to completely overlap the previous one, I would use Present Modally.
I could be wrong, I've been doing programming for a month now.
Himself still youngling
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question