# `GSAnchor isEqualToAnchor:`

*Instance Method*

Whether another anchor has the same position, name, attachment role, lock state, orientation, and attributes.

## Declaration

```swift
func isEqual(to other: GSAnchor) -> Bool
```

```objc
- (BOOL) isEqualToAnchor:(GSAnchor *) other;
```

```python
isEqualToAnchor_(other: GSAnchor) -> bool
```

## Discussion

The containing layer is not compared.

