The constants represent the standard mutable collection names—these names are included in the list of allFontCollectionNames--they have special meaning to the Cocoa font system and should not be hidden or renamed.


struct Name


Type Properties

static let user: NSFontCollection.Name

Per-user unmodifiable collection.

static let favorites: NSFontCollection.Name

Font collection of the user's preferred font descriptors.

static let recentlyUsed: NSFontCollection.Name

Font collection automatically maintained by NSFontManager.


See Also

Naming the Font Collection

class func rename(fromName: NSFontCollection.Name, visibility: NSFontCollection.Visibility, toName: NSFontCollection.Name)

Renames the font collection with the specified name and visibility to the second name specified.

class func hide(withName: NSFontCollection.Name, visibility: NSFontCollection.Visibility)

Remove from view the named font collection with the specified visibility.

class var allFontCollectionNames: [NSFontCollection.Name]

Returns all named collections visible to this process.

struct NSFontCollection.Visibility

Constants that specify the visibility of font collections.