---
title: MaxDisplayCount
framework: tipkit
role: symbol
role_heading: Structure
path: tipkit/tips/maxdisplaycount
---

# MaxDisplayCount

Specifies the maximum number of times a tip displays before the system automatically invalidates it.

## Declaration

```swift
struct MaxDisplayCount
```

## Overview

Overview Use this option to automatically invalidate a tip after it has appeared a specified number of times. By default tips have no maximum display count. struct FavoriteBackyardTip: Tip {     var options: [any Option] {         // Tip will only appear 3 times before it is automatically invalidated.         MaxDisplayCount(3)     } }

## Topics

### Initializers

- [init(_:)](tipkit/tips/maxdisplaycount/init(_:).md)

## Relationships

### Conforms To

- [Option](tipkit/tipoption.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Options

- [IgnoresDisplayFrequency](tipkit/tips/ignoresdisplayfrequency.md)
- [MaxDisplayDuration](tipkit/tips/maxdisplayduration.md)
