Content-Length: 286611 | pFad | https://github.com/auth0/Lock.swift/pull/542

78 UITextContentType support in InputField by ejensen · Pull Request #542 · auth0/Lock.swift · GitHub
Skip to content
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

UITextContentType support in InputField #542

Merged
merged 2 commits into from
Mar 29, 2019
Merged

UITextContentType support in InputField #542

merged 2 commits into from
Mar 29, 2019

Conversation

ejensen
Copy link
Contributor

@ejensen ejensen commented Mar 23, 2019

Changes

Assigns the appropriate UITextContentType based on InputField.InputType.
Assigning the content type of the text field allows iOS to better match auto-fill values.

Public API Changes

  • An optional contentType: UITextContentType? argument was added to CustomTextField.init

Before and After

before after

References

Testing

  • This change adds unit test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@cocojoe
Copy link
Member

cocojoe commented Mar 26, 2019

@ejensen Thanks, looks good at a glance. Will schedule some time to review later today. Good to see you fixed for Swift 3. I would ask that you document any changes to the Public API in the description as requested when creating a PR. Such as changes to CustomTextField initialiser.

@cocojoe
Copy link
Member

cocojoe commented Mar 26, 2019

Also any before/after screenshots also great to have.

@cocojoe cocojoe added this to the v2-Next milestone Mar 26, 2019
@cocojoe cocojoe self-requested a review March 26, 2019 11:43
@ejensen
Copy link
Contributor Author

ejensen commented Mar 26, 2019

@ejensen Thanks, looks good at a glance. Will schedule some time to review later today. Good to see you fixed for Swift 3. I would ask that you document any changes to the Public API in the description as requested when creating a PR. Such as changes to CustomTextField initialiser.

I've updated this PR's description as well as added a commit to update the example project and README with the new arguments for CustomTextField

Copy link
Member

@cocojoe cocojoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍 Looks good

@@ -212,6 +200,18 @@ func applyDefaultOptions(_ options: inout OptionBuildable) {
options.loggerOutput = CleanroomLockLogger()
options.logHttpRequest = true
options.oidcConformant = true

if #available(iOS 10, *) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't usually accept changes to the Test App. However, this looks fine. Passwordless will be untouched as it doesn't use CustomTextFields.

@cocojoe cocojoe merged commit 331a538 into auth0:master Mar 29, 2019
@cocojoe cocojoe mentioned this pull request Apr 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/auth0/Lock.swift/pull/542

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy