Contents

entitlement(_:matches:)

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

Declaration

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

Return Value

A XPCPeerRequirement object representing the requirement

Discussion

  • entitlement: The entitlement to check.

  • value: The bool value to match