# `GSComponent.traverseAnchors`

*Instance Property*

Whether anchor traversal includes anchors from the component layer.

## Declaration

```swift
var traverseAnchors: Bool { get set }
```

```objc
@property (nonatomic) BOOL traverseAnchors;
```

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

```python
pyobjc_instanceMethods.traverseAnchors() -> bool
pyobjc_instanceMethods.setTraverseAnchors_(traverseAnchors: bool)
```

## Discussion

Disabling traversal prevents these anchors from being used to attach later components.

## See Also

### Attachment

- [`GSComponent.anchor`](/Core/GlyphsCore/GSComponent/anchor) — The base anchor name to use for automatic attachment.
- [`GSComponent.doesAttach`](/Core/GlyphsCore/GSComponent/doesAttach) — Whether the component participates in automatic anchor attachment under the current policy.
- [`GSComponent.shouldAttach`](/Core/GlyphsCore/GSComponent/shouldAttach) — Whether the component normally qualifies for automatic anchor attachment.

