---
title: MaxDisplayCount
framework: tipkit
role: symbol
role_heading: Type Alias
path: tipkit/tip/maxdisplaycount
---

# MaxDisplayCount

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

## Declaration

```swift
typealias MaxDisplayCount = Tips.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)     } }

## See Also

### Customizing tip behavior

- [options](tipkit/tip/options.md)
- [Option](tipkit/tip/option.md)
- [IgnoresDisplayFrequency](tipkit/tip/ignoresdisplayfrequency.md)
- [MaxDisplayDuration](tipkit/tip/maxdisplayduration.md)
