# `GSComponent isEqualToComponent:`

*Instance Method*

Whether another component has matching placement and selected configuration values.

## Declaration

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

```objc
- (BOOL) isEqualToComponent:(GSComponent *) other;
```

```python
isEqualToComponent_(other: GSComponent) -> bool
```

## Discussion

The comparison includes position, scale, angle, slant, orientation, automatic-positioning policy, lock state, base-glyph name and master ID, attachment anchor, anchor traversal, smart-component settings, and shape attributes. It does not compare the resolved base-glyph contents or containing layers.

