---
title: "object(at:)"
framework: photos
role: symbol
role_heading: Instance Method
path: "photos/phfetchresult/object(at:)"
---

# object(at:)

Returns the object located at the specified index.

## Declaration

```swift
func object(at index: Int) -> ObjectType
```

## Parameters

- `index`: An index within the bounds of the fetch result.

## Return Value

Return Value The object located at index in the fetch result.

## Discussion

Discussion Raises a range exception if index is beyond the end of the fetch result (that is, greater than or equal to the value of the count property).

## See Also

### Querying a Fetch Result

- [contains(_:)](photos/phfetchresult/contains(_:).md)
- [count](photos/phfetchresult/count.md)
- [countOfAssets(with:)](photos/phfetchresult/countofassets(with:).md)
- [firstObject](photos/phfetchresult/firstobject.md)
- [lastObject](photos/phfetchresult/lastobject.md)
- [subscript(_:)](photos/phfetchresult/subscript(_:).md)
- [objects(at:)](photos/phfetchresult/objects(at:).md)
