Drawing text with CG is almost never the right option. For this reason, routines like
CGContextShowGlyphshave been deprecated in Objective-C and aren’t available in Swift. The only exception is
CGContextShowGlyphsAtPositions, but even that’s imported into Swift with a double underscore prefix (
__showGlyphs(_:atPositions:count:)). The recommended alternative is Core Text.
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"