TextField shows "single-factor SMS login code" in AutoFill when textContentType=.creditCardNumber

Originator:glen
Number:rdar://44610364 Date Originated:September 19 2018
Status:Open Resolved:
Product:iOS + SDK Product Version:12
Classification:Bug Reproducible:Always
 
Area:
UIKit

Summary: If you have a text field with .textContentType explicitly set to ".creditCardNumber", and receive a one time SMS code over Messages and do not use it prior to focusing on the text field, the one time SMS code shows up as an AutoFill option


Steps to Reproduce:
1. Set up project with two TextFields:
a) the first one with .textContentType=.oneTimeCode
b) the second with .textContentType=.creditCardNumber
2. Send an SMS to the device with "Your code is 1234"
3. Enter "1234" manually in the first text field on the app
4. Focus on the second text field

Expected Results:
AutoFill for a TextField with textContentType=.creditCardNumber should show a credit card number from Safari "Saved Credit Cards" to autofill (if one exists)

Actual Results:
The one time SMS code is displayed

Version/Build:
12.0 (16A366)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!