Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

92
Views
Setting UITextContentType.emailAddress on a UITextView is not working

I have a UITextView which is set with UIKeyboardType of .emailAddress I want to auto-suggest the user's email address with the UITextContentType property

I do so like so:

if #available(iOS 10.0, *) {
                        myTextView.textContentType = UITextContentType.emailAddress
                    }

However this is not working and I see no email in the suggestion box of the textview.

I have also tried the same thing with a UITextField but no dice. Is there something I am missing? I have done everything according to the docs. enter image description here

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Make sure you have set your email address in your own Contact card in the Contacts app.

:)

over 4 years ago · Santiago Trujillo Report

0

In case of email addresses you need to set your keyboardType to emailAddress also. I thought prediction/autocomplete is broken on iOS 13 but you just need to specify the right type of keyboard. This is how I got names and addresses to work:

textField.autocorrectionType = .yes
textField.textContentType = .givenName
textField.keyboardType = .namePhonePad
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!