Skip to content

Instantly share code, notes, and snippets.

@carson-katri
Created July 26, 2019 22:47
Show Gist options
  • Save carson-katri/bf7e14216b90bae9ed7343cfee4d82c1 to your computer and use it in GitHub Desktop.
Save carson-katri/bf7e14216b90bae9ed7343cfee4d82c1 to your computer and use it in GitHub Desktop.
extension NSAttributedString {
convenience init(@AttributedStringBuilder _ content: () -> NSAttributedString) {
self.init(attributedString: content())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment