# `GSComponent.doesAttach`

*Instance Property*

Whether the component participates in automatic anchor attachment under the current policy.

## Declaration

```swift
var doesAttach: Bool { get }
```

```objc
@property (nonatomic, readonly) BOOL doesAttach;
```

```python
doesAttach() -> bool
```

## See Also

### Attachment

- [`GSComponent.anchor`](/Core/GlyphsCore/GSComponent/anchor) — The base anchor name to use for automatic attachment.
- [`GSComponent.shouldAttach`](/Core/GlyphsCore/GSComponent/shouldAttach) — Whether the component normally qualifies for automatic anchor attachment.
- [`GSComponent.traverseAnchors`](/Core/GlyphsCore/GSComponent/traverseAnchors) — Whether anchor traversal includes anchors from the component layer.

