-
Notifications
You must be signed in to change notification settings - Fork 219
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
Default DismissButtonStyle when using SFSafariViewController iOS 11+ #305
Default DismissButtonStyle when using SFSafariViewController iOS 11+ #305
Conversation
Closing as there are failures, going to investigate. |
@andrewfoghel Thanks for the PR and screenshot. What is the use case? I noticed the other issues but they also give no reason as to why it's important. Looking at the above I feel that the current default So I think it should default to |
@cocojoe Thanks for the response here! This use case is more so for people using the |
We will not be using the On a separate note, if you all decide that you want this feature in I will maintain this PR. |
@andrewfoghel I feel we can address the root cause here changing the default of the Library to specify This should address the concern without having to expose additional methods to allow this to be changed by the developer. |
@cocojoe I was thinking it would be nice to give the developer the option to choose whichever option they want; however, I'm not opposed to simply defaulting the button to say |
@andrewfoghel Thanks for changing, I was on vacation, hence the delay in response :) Looks good 👍 |
DismissButtonStyle
When Using SFSafariViewController
@cocojoe thanks for the approval here! I'm going to delete the branch for prosperity, til next time! (: |
…uth0#305) * Default DismissButtonStyle to cancel to match newer methods.
Issue: #283
Issue: https://community.auth0.com/t/done-button-in-webview/23718/4
Description
This PR handles setting the
SFSafariViewController.dismissButtonStyle
to.cancel
when using theuseLegacyAuthentication(withStyle:)
method. Above are 2 places where people have asked for this feature, and I'm sure they aren't the only ones who need this support.Testing
We've added a spec to ensure that this gets set properly when using
useLegacyAuthentication(withStyle:)
, however; the test will only run on iOS 11.0 and up. If there are any ideas for testing this please let me know.Screenshots/GIFs