# `GSLayer metricsKeysInvalid`

*Instance Method*

Whether any horizontal metrics key is invalid.

## Declaration

```swift
func metricsKeysInvalid() -> Bool
```

```objc
- (BOOL) metricsKeysInvalid;
```

```python
metricsKeysInvalid() -> bool
```

## See Also

### Metrics Keys Utilities

- [`GSLayer plainMetricsKeyUI:`](/Core/GlyphsCore/GSLayer/plainMetricsKeyUI:) — Plain metrics key for display and editing.
- [`GSLayer attributedMetricsKey:fontSize:state:`](/Core/GlyphsCore/GSLayer/attributedMetricsKey:fontSize:state:) — Attributed display string for a metrics key.
- [`GSLayer alignedMetricsValueForKey:`](/Core/GlyphsCore/GSLayer/alignedMetricsValueForKey:) — Numeric offset encoded in an aligned metrics key.
- [`GSLayer metricsKeysOutOfSync`](/Core/GlyphsCore/GSLayer/metricsKeysOutOfSync) — Whether any horizontal metrics key is out of sync.
- [`GSLayer metricsLabelForSide:`](/Core/GlyphsCore/GSLayer/metricsLabelForSide:) — Localized label for a metric side.
- [`GSLayer colorForMetricsState:`](/Core/GlyphsCore/GSLayer/colorForMetricsState:) — Display color for metrics key state flags.

