<!--
{
  "availability" : [
    "iOS: 4.2.0 - 8.0.0",
    "iPadOS: 4.2.0 - 8.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.8.0 - 10.10.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKFriendRequestComposeViewController/addRecipients(withPlayerIDs:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKFriendRequestComposeViewController(im)addRecipientsWithPlayerIDs:"
  },
  "title" : "addRecipients(withPlayerIDs:)"
}
-->

# addRecipients(withPlayerIDs:)

Adds recipients based on their Game Center player identifiers.

```
func addRecipients(withPlayerIDs playerIDs: [String])
```

## Parameters

`playerIDs`

An array with one or more <doc://com.apple.documentation/documentation/Foundation/NSString> objects, each containing an player identifier.

## Discussion

If you do not add at least once recipient, the recipients field is selected when the view controller is presented so that the player can type a list of recipients.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)