Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let myAttributedText = NSMutableAttributedString(string: string)
- myAttributedText.addAttribute(NSAttributedStringKey(rawValue: keyName), value: binding, range: NSMakeRange(0, tokenAttributedText.length))
- let spaceAttributedText = NSMutableAttributedString(string: " ")
- attributedText.append(tokenAttributedText)
- attributedText.append(spaceAttributedText)
Add Comment
Please, Sign In to add comment