# `GSComponent.shouldAttach`

*Instance Property*

Whether the component normally qualifies for automatic anchor attachment.

## Declaration

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

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

```python
shouldAttach() -> bool
```

## Discussion

This value does not account for [`GSComponent.alignment`](/Core/GlyphsCore/GSComponent/alignment).

## 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.traverseAnchors`](/Core/GlyphsCore/GSComponent/traverseAnchors) — Whether anchor traversal includes anchors from the component layer.

