Declaration

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

Declaration

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

Declaration

setAttribute_forKey_(
    value: object,
    key: GSShapeKey
)

Parameters

value

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

Discussion

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

See Also

Attributes