# `GSLayer setAttributesFast:`

*Instance Method*

Replaces all attributes without registering undo or notifying the glyph.

## Declaration

```swift
func setAttributesFast(_ attributes: NSMutableDictionary)
```

```objc
- (void) setAttributesFast:(NSMutableDictionary<NSString *,id> *) attributes;
```

```python
setAttributesFast_(attributes: dict[str, object])
```

## Discussion

The mutable dictionary becomes the layer’s attribute storage.

## See Also

### Attributes

- [`GSLayer.attributes`](/Core/GlyphsCore/GSLayer/attributes) — Values that configure layer behavior and special layer formats.
- [`GSLayer countOfAttributes`](/Core/GlyphsCore/GSLayer/countOfAttributes) — The number of attributes.
- [`GSLayer attributeForKey:`](/Core/GlyphsCore/GSLayer/attributeForKey:) — The value for an attribute key, or `nil` if no value is set.
- [`GSLayer setAttribute:forKey:`](/Core/GlyphsCore/GSLayer/setAttribute:forKey:) — Sets or removes an attribute.
- [`GSLayer setAttributeFast:forKey:`](/Core/GlyphsCore/GSLayer/setAttributeFast:forKey:) — Sets an attribute without registering undo or notifying the glyph.
- [`GSLayer removeAttributeForKey:`](/Core/GlyphsCore/GSLayer/removeAttributeForKey:) — Removes an attribute.

