Warning: Attempt to present * on * whose view is not in the window hierarchy – swift

At this point in your code the view controller’s view has only been created but not added to any view hierarchy. If you want to present from that view controller as soon as possible you should do it in viewDidAppear to be safest.

Leave a Comment

tech