<!--
{
  "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/init(maximumCount:maximumAge:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "TipKit"
    ],
    "preciseIdentifier" : "s:6TipKit4TipsO13DonationLimitV12maximumCount0F3AgeAESi_AC0D9TimeRangeVSgtcfc"
  },
  "title" : "init(maximumCount:maximumAge:)"
}
-->

# init(maximumCount:maximumAge:)

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

```
init(maximumCount: Int, maximumAge: Tips.DonationTimeRange? = nil)
```

## Parameters

`maximumCount`

Maximum number of donations this event will persist and query.

`maximumAge`

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

---

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)