Every time I tap on the 'X' button the view shows up again because "presentViewController(gpaViewController, animated: false, completion: nil)" is in "viewDidAppear". So every time "dismissViewControllerAnimated(true, completion: nil)" is called the same view controller loads again.
Every time I tap on the 'X' button the view shows up again because "presentViewController(gpaViewController, animated: false, completion: nil)" is in "viewDidAppear". So every time "dismissViewControllerAnimated(true, completion: nil)" is called the same view controller loads again.
How can I make it jump to a new ViewController?