Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Wow, works like magic after searching for this for an hour+. Needed for: Setting an icon in an NSTextAttachment in a color different from the icon's original one. The standard answer to use a UIImageView and change its tintColor doesn't work here, because NSTextAttachment doesn't take the UIImageView. Commented Jan 26, 2017 at 18:43
  • 1
    This is the best solution I have found so far especially for anyone looking for code that works with Swift 3. Great suggestion! Commented Feb 27, 2017 at 11:36