# `GSLayer.name`

*Instance Property*

A custom name for the layer.

## Declaration

```swift
var name: String? { get set }
```

```objc
@property (nonatomic, strong) NSString * name;
```

[See also `name` in the Python API](https://docu.glyphsapp.com/#GSLayer.name)

```python
pyobjc_instanceMethods.name() -> str
pyobjc_instanceMethods.setName_(name: str)
```

## Discussion

The displayed name of a master, Intermediate, Alternative, or color layer can be derived from its role and attributes instead.

## See Also

### Naming

- [`GSLayer.nameUI`](/Core/GlyphsCore/GSLayer/nameUI) — A name suitable for presenting the layer in the user interface.

