Besides enabling data detection on text views in Interface Builder, I haven't had the need to explore the NSDataDetector framework provided by Apple. Luckily, there is much more you can do once you learn the framework. In this post, Tom shows us how to detect links, phone numbers, email addresses, and a few other data items. Use this framework for validation or extracting email addresses out of a lump of text. That's what Tom did in his example extension. Prett cool!
Data Detection in Swift by Tom Harrington