File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,14 @@ final class AddressViewController: FormTableViewController {
114
114
self . zipCell. textField. addTarget ( self ,
115
115
action: #selector( zipTextFieldDidChange) ,
116
116
for: . allEditingEvents)
117
+
118
+ if #available( iOS 10 . 0 , * ) {
119
+ self . street1Cell. textField. textContentType = . streetAddressLine1
120
+ self . street2Cell. textField. textContentType = . streetAddressLine2
121
+ self . cityCell. textField. textContentType = . addressCity
122
+ self . regionCell. textField. textContentType = . addressState
123
+ self . zipCell. textField. textContentType = . postalCode
124
+ }
117
125
}
118
126
119
127
func checkToPrefillForm( ) {
Original file line number Diff line number Diff line change @@ -81,6 +81,13 @@ final class NameAndEmailViewController: FormTableViewController {
81
81
self . emailCell. textField. keyboardType = . emailAddress
82
82
self . emailCell. textField. autocapitalizationType = . none
83
83
self . emailCell. textField. autocorrectionType = . no
84
+
85
+ if #available( iOS 10 . 0 , * ) {
86
+ self . firstNameCell. textField. textContentType = . givenName
87
+ self . middleInitialCell. textField. textContentType = . middleName
88
+ self . lastNameCell. textField. textContentType = . familyName
89
+ self . emailCell. textField. textContentType = . emailAddress
90
+ }
84
91
}
85
92
86
93
func checkToPrefillForm( ) {
You can’t perform that action at this time.
0 commit comments