Swift - NSFontManager availableFonts
Hi,
I am working on a swift project.
I try to get the available fonts, but the various trials I made were unsuccessful.
From the documentation, I believed that one of the following lines would work :
let allFontsName = NSFontManager.availableFonts
or var availableFonts: [AnyObject] { get }
How can I do ?
Thanks,
Nicolas