Support for Data Detectors in fields

Idea created by Brian Hamm on Nov 19, 2018

    One extremely useful feature in macOS and iOS development is that UITextView objects can automatically recognize and present certain types of string data as interactive. Tapping a URL inside a UITextView will open Safari, tapping a phone number will dial it, tapping a date can add an event (or reminder) to the Calendar (or Reminders) app, tapping a street address will open the location in Maps...


    In Xcode, Data Detectors are enabled in the UITextView attributes. Here's a screenshot from one of my apps, which includes our organization's Facebook Page feed. The post text below includes a street address and a URL. Note that address fragments are still recognized. The street address is still active (underlined) without requiring a city or zip code. And the URL is still recognized without the http protocol.


    Screen Shot 2018-11-19 at 9.13.24 PM.png


    Screen Shot 2018-11-16 at 10.46.00 PM copy.png