title: Add NSUnderlineStyle.PatternDash to NSAttributedString in Swift?
body: <p>I'm trying to add an underline to some text in my Swift app. This is the code I have currently:</p>
  
  <pre><code>let text = NSMutableAttributedString(string: self.currentHome.name)
  
  let attrs = [NSUnderlineStyleAttributeName:NSUnderlineStyle.PatternDash]
  
  text.addAttributes(attrs, range: NSMakeRange(0, text.length))
  homeLabel.attributedText = text
  </code></pre>
  
  <p>But I get this error on the <code>text.addAttributes</code> line:</p>
  
  <blockquote>
    <p><code>NSString</code> is not identical to <code>NSObject</code></p>
  </blockquote>
  
  <p>How can I add an attribute contained in an enum to an NSMutableAttributedString in Swift?</p>