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

# entitlement(_:matches:)

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

## Declaration

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

## Return Value

Return Value A XPCPeerRequirement object representing the requirement

## Discussion

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