# `GSPalettes indexOfPaletteWithAttribute:`

*Instance Method*

Returns `NSNotFound` when no palette has the given attribute.

## Declaration

```swift
func indexOfPalette(with attribute: GSPalettes.Attribute) -> Int
```

```objc
- (NSInteger) indexOfPaletteWithAttribute:(GSPalettesAttribute) attribute;
```

```python
indexOfPaletteWithAttribute_(attribute: GSPalettesAttribute) -> int
```

