Powered by Appetize.io.
Uses AutoHyperlinks code from Adium http://code.google.com/p/maccode/wiki/AutoHyperlinks
Project includes an example of how to use the core text view.
It's pretty simple - create the view with a 0 height frame, set the attributes, set its text, and then ask it for it's size so that the height is just correct. It will calculate based on the constraining width, and any padding that you set.
There is also a Twitter specific subclass that enables @usernames and #hashtags to be linkified.
textAlignment textColor linkColor highlightedLinkColor fontName fontSize paddingTop paddingLeft backgroundImage bgImageTopStretchCap bgImageLeftStretchCap
Check out this lovingly crafted Apple Music-style popup library. SPAlert is written in clean, beautiful, modern Swift code by Ivan Vorobei, a prolific and talented open source developer.
This open source project contains a ton of preset styles, including "done," "heart," "message," and more. If the presets don't fit your needs, you can customize the popups with custom images and duration. Includes support for light and dark modes, and installable via Swift Package Manager and CocoaPods.