title: How do I make a particular word in a UILabel selectable (Swift 2.0)?
body: <p>I have been facing a big issue that probably has a simple solution the entire day. I have a <code>UILabel</code> and it contains an <code>NSAttributedString</code> in it. I want a particular range in the <code>UILabel</code> to be tappable. I don't want any third-party functionality.</p>
  
  <p>Here is my sample code:</p>
  
  <pre><code>let str = dict["itemName"] as! NSString
  range = string.rangeOfString(dict["itemName"] as! String)!
  index = string.startIndex.distanceTo(range.startIndex)
  attributedString.addAttribute(NSForegroundColorAttributeName, value: color, range: NSRange(location: index, length: str.length))
  </code></pre>