<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKLocalPlayer/presentFriendRequestCreator(from:)-7j1kn",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKLocalPlayer(im)presentFriendRequestCreatorFromViewController:error:"
  },
  "title" : "presentFriendRequestCreator(from:)"
}
-->

# presentFriendRequestCreator(from:)

Presents a view controller with a Messages sheet for the player to request friends.

```
func presentFriendRequestCreator(from viewController: UIViewController) throws
```

## Parameters

`viewController`

The view controller that contains the Messages sheet, and that this method presents.

## Discussion

If this method throws an exception, it doesn’t present the view controller.

---

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)