---
title: limit
framework: musickit
role: symbol
role_heading: Instance Property
path: musickit/musiclibrarysearchrequest/limit
---

# limit

A limit for the number of items to return in the library search response.

## Declaration

```swift
var limit: Int
```

## Discussion

Discussion The default value for this limit is 50. If the application sets the limit to 0, the framework returns all matching items in the user’s music library.
