I'm looking for a way to support ANSI colors with NSAttributedString. The primary attributes I need supported are foreground/background color. Ideally I'd like to have this code portable between macOS and Linux. However macOS utilities UIColor for the definition of color. Is there any thought or issue in creating a UIColor-like API for Linux Swift?
My ultimate goal is to be able to be able to generate ANSI, HTML, or RTF.
Yeah, the documentation doesn't always highlight the differences between platforms.
UIColor only exists on the other Apple platforms (and on those platforms that is the correct class to use with foreground/background color in NSAttributedString)