# `GSLayer isEqualToLayer:`

*Instance Method*

Whether another layer has equal metrics, attributes, shapes, anchors, hints, guides, and background content.

## Declaration

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

```objc
- (BOOL) isEqualToLayer:(GSLayer *) other;
```

```python
isEqualToLayer_(other: GSLayer) -> bool
```

## Parameters

- `other` — The layer to compare.

## Discussion

Layer identity, ownership, names, and color labels are not compared.

## See Also

### Equality and Comparison

- [`GSLayer compareString`](/Core/GlyphsCore/GSLayer/compareString) — A signature describing the interpolation-relevant structure of the layer.
- [`GSLayer compareStringOptions:`](/Core/GlyphsCore/GSLayer/compareStringOptions:) — A signature describing selected parts of the interpolation-relevant structure.
- [`GSLayer compareParticlesOptions:`](/Core/GlyphsCore/GSLayer/compareParticlesOptions:) — The individual parts that form a structural compatibility signature.

