I am using this line of code
in my app and sometimes, though not always, Xcode will tell me the error message 'nil found while unwrapping optional value', while using the Simulator. I can't seem to replicate the behavior that triggers this error message. Any ideas?
Code:
self.view.window!.rootViewController?.dismiss(animated: false, completion: nil)
in my app and sometimes, though not always, Xcode will tell me the error message 'nil found while unwrapping optional value', while using the Simulator. I can't seem to replicate the behavior that triggers this error message. Any ideas?