---
title: "entitlement(_:matches:)"
framework: xpc
role: symbol
role_heading: Type Method
path: "xpc/xpcpeerrequirement/entitlement(_:matches:)-2ubq1"
---

# entitlement(_:matches:)

Create a requirement that the peer has the specified entitlement with the matching integer value

## Declaration

```swift
static func entitlement(_ entitlement: String, matches value: Int) -> XPCPeerRequirement
```

## Return Value

Return Value A XPCPeerRequirement object representing the requirement

## Discussion

Discussion entitlement: The entitlement to check. value: The int value to match
