Declaration

func layers(forName name: String?, masterIDs: [String]) -> [GSLayer]?

Declaration

- (NSArray<GSLayer *> *) layersForName:(NSString *) name masterIDs:(NSArray<NSString *> *) masterIDs;

Declaration

layersForName_masterIDs_(name: str, masterIDs: list[str]) -> list[GSLayer]

Parameters

name

The required layer name, or nil for master layers.

masterIDs

The font master identifiers that determine the layers and their order.

Discussion

When name is non-nil, each layer must have that name and be associated with the corresponding font master. When name is nil, this method obtains the master layer for each identifier. Returns nil when any requested layer is unavailable.

See Also

Layers