<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: -",
    "macOS: 26.4.0 -",
    "tvOS: 26.4.0 -",
    "visionOS: 26.4.0 -",
    "watchOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentDonationMatchingPredicate/donationIdentifiers(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents31IntentDonationMatchingPredicateV19donationIdentifiersyACSayAA0cD10IdentifierVGFZ"
  },
  "title" : "donationIdentifiers(_:)"
}
-->

# donationIdentifiers(_:)

Creates a predicate that matches one or more previous donations.

```
static func donationIdentifiers(_ identifiers: [IntentDonationIdentifier]) -> IntentDonationMatchingPredicate
```

## Parameters

`identifiers`

An array of donation identifiers you received after donating app intents.

## Return Value

A predicate that matches the specified donations.

## Discussion

When you donate an app intent using the methods of [`IntentDonationManager`](/documentation/AppIntents/IntentDonationManager), the
method returns a unique identifier for that donation. Use this method to create
a predicate that matches all of the donations you specified.

---

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)