Declaration

func setAttribute(_ value: Any?, forKey key: GSLayerAttribute)

Declaration

- (void) setAttribute:(id) value forKey:(GSLayerAttribute) key;

Declaration

setAttribute_forKey_(value: object, key: GSLayerAttribute)

Parameters

value

A value that supports property-list encoding, or nil to remove the attribute.

Discussion

Setting an attribute registers undo and notifies the glyph. Passing nil as the value removes the attribute.

See Also

Attributes