Declaration

class func layerData(fromDict dict: [String : Any], format: GSFormatVersion) throws -> Data

Declaration

+ (NSData *) layerDataFromDict:(NSDictionary<NSString *,id> *) dict format:(GSFormatVersion) format error:(NSError **) error;

Declaration

layerDataFromDict_format_error_(dict: dict[str, object], format: GSFormatVersion) -> tuple[bytes, NSError]

Parameters

dict

A dictionary containing model objects grouped by layer element keys.

format

The Glyphs file format version to use.

Parameters

dict

A dictionary containing model objects grouped by layer element keys.

format

The Glyphs file format version to use.

error

On failure, information about the error.

Return Value

The encoded data, or nil when an element cannot be encoded.

See Also

Encoding