I just came across a crash showing a NSInvalidArgumentException with this message on an app which wasn\'t doing this before.
NSInvalidArgumentException
Application
Instead of using:
self.present(viewControllerToPresent: UIViewController, animated: Bool, completion: (() -> Void)?)
you can use:
self.navigationController?.pushViewController(viewController: UIViewController, animated: Bool)