# `GSLayer anchorForName:`

*Instance Method*

Anchor for a name.

## Declaration

```swift
func anchor(forName name: String) -> GSAnchor?
```

```objc
- (GSAnchor *) anchorForName:(NSString *) name;
```

```python
anchorForName_(name: str) -> GSAnchor
```

## See Also

### Anchor Lookup

- [`GSLayer anchorForName:traverseComponents:`](/Core/GlyphsCore/GSLayer/anchorForName:traverseComponents:) — Anchor for a name, optionally resolving component anchors.

