init(characterIdentifier:collection:baseString:)
Instantiates and returns an NSGlyphInfo object using a character identifier and a character collection.
Declaration
init?(characterIdentifier cid: Int, collection characterCollection: NSCharacterCollection, baseString string: String)Parameters
- cid:
A character identifier.
- characterCollection:
A string constant representing a character collection. Possible values are described in Nscharactercollection.
- string:
The part of the attributed string the returned instance is intended to override.
Return Value
The created NSGlyphInfo object or nil if the object couldn’t be created.