-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpectedly found nil while unwrapping an Optional value #19
Comments
I am getting the same error. I am generating a URL and setting it in a state variable. Once the string is set I tap a button to load the BetterSafariView and I get "Unexpectedly found nil while unwrapping an Optional value" The code below shows two button. One to get the link to verify the link is there. The second to load the view.
|
It appears the issue occurs anytime a direct link is not added. For example this works.
This does not.
|
In digging into this a bit further, I'd propose changing
to
|
I am getting the "Unexpectedly found nil while unwrapping an Optional value" error when trying to call webAuthenticationSession in a SwiftUI project. The error points to line 185 in WebAuthenticationPresenter.swift.
My code looks like this:
Welcome any suggestions.
The text was updated successfully, but these errors were encountered: