---
title: "friendRequestComposeViewControllerDidFinish(_:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkfriendrequestcomposeviewcontrollerdelegate/friendrequestcomposeviewcontrollerdidfinish(_:)"
---

# friendRequestComposeViewControllerDidFinish(_:)

Called when the player dismisses the request.

## Declaration

```swift
func friendRequestComposeViewControllerDidFinish(_ viewController: GKFriendRequestComposeViewController)
```

## Parameters

- `viewController`: The friend request view controller that was dismissed by the player.

## Discussion

Discussion Your delegate should dismiss the view controller. If your game paused any gameplay or other activities, it can restart those services in this method.
