# `GSGlyph forcedLayerGroupIdsSeenLayers:ignoreEmptyLayers:`

*Instance Method*

The layer identifier groups formed without reference to configured instances.

## Declaration

```swift
func forcedLayerGroupIdsSeenLayers(_ seenLayers: NSMutableSet?, ignoreEmptyLayers: Bool) -> NSMutableArray
```

```objc
- (NSMutableArray<NSMutableOrderedSet<NSString *> *> *) forcedLayerGroupIdsSeenLayers:(NSMutableSet<NSString *> *) seenLayers ignoreEmptyLayers:(BOOL) ignoreEmptyLayers;
```

```python
forcedLayerGroupIdsSeenLayers_ignoreEmptyLayers_(seenLayers: set[str], ignoreEmptyLayers: bool) -> list[NSMutableOrderedSet<NSString *>]
```

## Parameters

- `seenLayers` — A set to which the identifiers included in a group are added, or `nil` when this information is not needed.
- `ignoreEmptyLayers` — Whether to omit layers without shapes or a background image.

## Discussion

Inactive layers are omitted.

## See Also

### Layer Groups

- [`GSGlyph layerGroups`](/Core/GlyphsCore/GSGlyph/layerGroups) — The layer identifier groups used to check compatibility and coordinate edits across corresponding layers.
- [`GSGlyph layerGroupsInstances:masters:ignoreEmptyLayers:error:`](/Core/GlyphsCore/GSGlyph/layerGroupsInstances:masters:ignoreEmptyLayers:error:) — The layer identifier groups required by a set of instances.
- [`GSGlyph layerGroupIDSetForLayer:`](/Core/GlyphsCore/GSGlyph/layerGroupIDSetForLayer:) — The forced layer group containing a layer, or `nil` when the layer is not in a group.
- [`GSGlyph layerGroupIDSetForLayer:ignoreEmptyLayers:`](/Core/GlyphsCore/GSGlyph/layerGroupIDSetForLayer:ignoreEmptyLayers:) — The forced layer group containing a layer, or `nil` when the layer is not in a group.
- [`GSGlyph layerGroupIDsForLayer:`](/Core/GlyphsCore/GSGlyph/layerGroupIDsForLayer:) — The forced layer group containing a layer as an array, or `nil` when the layer is not in a group.
- [`GSGlyph compatibleLayerGroupIdsForLayer:`](/Core/GlyphsCore/GSGlyph/compatibleLayerGroupIdsForLayer:) — The identifiers of layers in the same group that have compatible shapes, anchors, and path-component hints.
- [`GSGlyph collectBraceLayerIDsMasters:allKeys:`](/Core/GlyphsCore/GSGlyph/collectBraceLayerIDsMasters:allKeys:) — The font masters including representations of active Intermediate-layer locations.

