---
title: kSecMatchLimit
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecmatchlimit
---

# kSecMatchLimit

A key whose value indicates the match limit.

## Declaration

```swift
let kSecMatchLimit: CFString
```

## Mentioned in

Searching for keychain items Storing Keys in the Keychain

## Discussion

Discussion The corresponding value is of type CFNumber. If provided, this value specifies the maximum number of results to return or otherwise act upon. For a single item, specify kSecMatchLimitOne. To specify all matching items, specify kSecMatchLimitAll. The default behavior is function-dependent.
