How to show AlertViewController?
nickgreetzly opened this issue · 1 comments
nickgreetzly commented
Report a bug
I can't show AlertViewController on navigator object.
What did you do?
I tried all different options to get the viewcontroller from uinavigationcontroller and navigator object but its not working.
What did you expect to happen?
It should show the alert on the screen.
What happened instead?
Nothing happened.
serejahh commented
Open ViewController and add
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
let alertViewController = UIAlertController(title: "works", message: nil, preferredStyle: .alert)
present(alertViewController, animated: true, completion: nil)
}
and you'll see the alert