Fawxy / CBPinEntryView

A customisable view for entering arbitrary length pins, codes or passwords in iOS. Supports iOS 12 one time codes.
MIT License
189 stars 41 forks source link

Unable to set text content type to support autofill #11

Closed freemansion closed 5 years ago

freemansion commented 6 years ago

Issue

Native UITextField class has property called textContentType, which allows to specify expected information about semantic intent.

I think it does make sense (especially for this library) to add same attribute in order to support iOS 12 new feature like autofill OTP code.

More information you can read at the official website - https://developer.apple.com/documentation/security/password_autofill/enabling_password_autofill_on_a_text_input_view

Fawxy commented 6 years ago

Good idea. I will try to implement this next week

freemansion commented 6 years ago

Will make a PR soon.

Fawxy commented 5 years ago

Merged. sorry this took me so long 😬