---
title: "enumerateObjects(_:)"
framework: photos
role: symbol
role_heading: Instance Method
path: "photos/phfetchresult/enumerateobjects(_:)"
---

# enumerateObjects(_:)

Executes the specified block using each object in the fetch result, starting with the first object and continuing in order to the last object.

## Declaration

```swift
func enumerateObjects(_ block: @escaping (ObjectType, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
```

## Parameters

- `block`: The block to apply to elements in the fetch result. The block takes three parameters:

## Discussion

Discussion This method executes synchronously.

## See Also

### Performing Operations with Objects in a Fetch Result

- [enumerateObjects(at:options:using:)](photos/phfetchresult/enumerateobjects(at:options:using:).md)
- [enumerateObjects(options:using:)](photos/phfetchresult/enumerateobjects(options:using:).md)
