# `GSGlyph mastersCompatibleForLayers:`

*Instance Method*

Whether the layers have matching shapes, anchor names, and path-component hints.

## Declaration

```swift
func mastersCompatible(for layers: [GSLayer]) -> Bool
```

```objc
- (BOOL) mastersCompatibleForLayers:(NSArray<GSLayer *> *) layers;
```

```python
mastersCompatibleForLayers_(layers: list[GSLayer]) -> bool
```

## Parameters

- `layers` — The layers to compare.

## See Also

### Layer Compatibility

- [`GSGlyph mastersCompatible`](/Core/GlyphsCore/GSGlyph/mastersCompatible) — Whether every layer group has matching structure for interpolation.
- [`GSGlyph mastersCompatibleForLayerIds:`](/Core/GlyphsCore/GSGlyph/mastersCompatibleForLayerIds:) — Whether the specified layers have matching shapes, anchor names, and path-component hints.
- [`GSGlyph mastersCompatibleForLayerIds:options:`](/Core/GlyphsCore/GSGlyph/mastersCompatibleForLayerIds:options:) — Whether selected aspects of the specified layers have matching structure.
- [`GSGlyph resetMasterCompatibilityCheckStatus`](/Core/GlyphsCore/GSGlyph/resetMasterCompatibilityCheckStatus) — Marks layer compatibility for reevaluation.
- [`GSGlyph removeIncompatibleLayerContent:options:`](/Core/GlyphsCore/GSGlyph/removeIncompatibleLayerContent:options:) — Clears the shapes of active layers whose selected aspects do not match the first layer.

