<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHFetchResult/object(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHFetchResult(im)objectAtIndex:"
  },
  "title" : "object(at:)"
}
-->

# object(at:)

Returns the object located at the specified index.

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

## Parameters

`index`

An index within the bounds of the fetch result.

## Return Value

The object located at `index` in the fetch result.

## 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`](/documentation/Photos/PHFetchResult/count) property).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)