<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ContactProvider",
  "identifier" : "/documentation/ContactProvider/ContactItemEnumerating/enumerator(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ContactProvider"
    ],
    "preciseIdentifier" : "s:15ContactProvider0A15ItemEnumeratingP10enumerator3forAA0aC10Enumerator_pAA0aC0O10IdentifierV_tF"
  },
  "title" : "enumerator(for:)"
}
-->

# enumerator(for:)

Provide an enumerator for the contact items collection.

```
func enumerator(for collection: ContactItem.Identifier) -> any ContactItemEnumerator
```

## Parameters

`collection`

The collection to enumerate; defaults to
[`rootContainer`](/documentation/ContactProvider/ContactItem/Identifier/rootContainer).

## Discussion

The collection represents all contacts for the domain (`ContactItem.Identifier.rootContainer`).

---

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)