Skip to content

Instantly share code, notes, and snippets.

@michaelevensen
Created October 24, 2016 08:08
Show Gist options
  • Save michaelevensen/5850c5e89d6c59b9098d15ddc1e8db3a to your computer and use it in GitHub Desktop.
Save michaelevensen/5850c5e89d6c59b9098d15ddc1e8db3a to your computer and use it in GitHub Desktop.
// Set new text with existing NSAttributedString
let titleAttributedString = NSMutableAttributedString(string: self.meetingTitles[indexPath.row], attributes: cell.meetingTitle.attributedText?.attributes(at: 0, effectiveRange: nil))
// Set new attributedText
cell.meetingTitle.attributedText = titleAttributedString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment