# `GSInstance indexOfObjectInIconPresets:`

*Instance Method*

Returns the index of the specified icon preset in iconPresets.

## Declaration

```swift
func indexOfObject(inIconPresets iconPreset: GSIconPreset) -> UInt
```

```objc
- (NSUInteger) indexOfObjectInIconPresets:(GSIconPreset *) iconPreset;
```

```python
indexOfObjectInIconPresets_(iconPreset: GSIconPreset) -> int
```

## Parameters

- `iconPreset` — The icon preset.

## Return Value

The index of the icon preset.

