# `GSLayer.hasColorsInComponents`

*Instance Property*

Whether the first shape is a component whose glyph uses a color-layer format.

## Declaration

```swift
var hasColorsInComponents: Bool { get }
```

```objc
@property (nonatomic, readonly) BOOL hasColorsInComponents;
```

```python
hasColorsInComponents() -> bool
```

## See Also

### Inspecting Colors

- [`GSLayer descriptionForAttributeColor`](/Core/GlyphsCore/GSLayer/descriptionForAttributeColor) — A stable description of the color-layer format, or an empty string for a non-color layer.
- [`GSLayer localizedDescriptionForAttributeColor`](/Core/GlyphsCore/GSLayer/localizedDescriptionForAttributeColor) — A localized description of the color-layer format, or an empty string for a non-color layer.

