<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TipKit",
  "identifier" : "/documentation/TipKit/Tips/DonationLimit",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "TipKit"
    ],
    "preciseIdentifier" : "s:6TipKit4TipsO13DonationLimitV"
  },
  "title" : "DonationLimit"
}
-->

# DonationLimit

Specify the maximum number of donations for an event.

```
struct DonationLimit
```

## Topics

### Initializers

[`init(maximumCount: Int, maximumAge: Tips.DonationTimeRange?)`](/documentation/TipKit/Tips/DonationLimit/init(maximumCount:maximumAge:))

Passed to an `Event` to specify the maximum number and maximum age of donations the event will persist and query.

### Instance Properties

[`let maximumAge: Tips.DonationTimeRange?`](/documentation/TipKit/Tips/DonationLimit/maximumAge)

Maximum age of donations this event will persist and query. By default events have no maximum age.

[`let maximumCount: Int`](/documentation/TipKit/Tips/DonationLimit/maximumCount)

Maximum number of donations this event will persist and query.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

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)