Guest User

Untitled

a guest
Apr 25th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. let myAttributedText = NSMutableAttributedString(string: string)
  2. myAttributedText.addAttribute(NSAttributedStringKey(rawValue: keyName), value: binding, range: NSMakeRange(0, tokenAttributedText.length))
  3.  
  4. let spaceAttributedText = NSMutableAttributedString(string: " ")
  5.  
  6. attributedText.append(tokenAttributedText)
  7. attributedText.append(spaceAttributedText)
Add Comment
Please, Sign In to add comment